Skip to content

Commit

Permalink
Fix cors header when all origins are allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Nov 1, 2017
1 parent c5a1be8 commit f0f52a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/views/__init__.py
Expand Up @@ -54,7 +54,7 @@ def set_cors_headers_for_response(response):

cors_origin_allowed = None
if asbool(config.get(u'ckan.cors.origin_allow_all')):
cors_origin_allowed = u'*'
cors_origin_allowed = b'*'
elif config.get(u'ckan.cors.origin_whitelist') and \
request.headers.get(u'Origin') \
in config[u'ckan.cors.origin_whitelist'].split(u' '):
Expand Down

0 comments on commit f0f52a9

Please sign in to comment.