summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_middleware/cors.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/oslo_middleware/cors.py b/oslo_middleware/cors.py
index 863ae66..8e8422d 100644
--- a/oslo_middleware/cors.py
+++ b/oslo_middleware/cors.py
@@ -12,7 +12,6 @@
# implied. See the License for the specific language governing permissions and
# limitations under the License.
-# Default allowed headers
import copy
import logging
@@ -225,6 +224,9 @@ class CORS(base.ConfigurableMiddleware):
# NOTE(dims): Support older code that still passes in
# a string for allowed_origin instead of a list
if isinstance(allowed_origin, six.string_types):
+ # TODO(krotscheck): https://review.openstack.org/#/c/312687/
+ LOG.warn('DEPRECATED: The `allowed_origin` keyword argument in '
+ '`add_origin()` should be a list, found String.')
allowed_origin = [allowed_origin]
if allowed_origin: