Skip to content

Commit

Permalink
Merge pull request #3898 from Zharktas/fix_cors_headers
Browse files Browse the repository at this point in the history
Fix cors header when all origins are allowed
  • Loading branch information
wardi committed Nov 2, 2017
2 parents c5a1be8 + f0f52a9 commit 01c8064
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 01c8064

Please sign in to comment.