Skip to content

Commit

Permalink
Update AllowOriginMiddleware.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwolford committed Mar 21, 2016
1 parent 2743cf9 commit 48f6e5c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion adl_lrs/utils/AllowOriginMiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def process_response(self, request, response):
response['Access-Control-Allow-Origin'] = "%s://%s:%s" % (protocol, request.META['SERVER_NAME'], port)
else:
response['Access-Control-Allow-Origin'] = "%s://%s" % (protocol, request.META['SERVER_NAME'])
response['Access-Control-Allow-Origin'] = '*'
response['Access-Control-Allow-Methods'] = 'HEAD, POST, GET, OPTIONS, DELETE, PUT'
response['Access-Control-Allow-Headers'] = 'Content-Type,Content-Length,Authorization,If-Match,If-None-Match,X-Experience-API-Version, Accept-Language'
response['Access-Control-Expose-Headers'] = 'ETag,Last-Modified,Cache-Control,Content-Type,Content-Length,WWW-Authenticate,X-Experience-API-Version, Accept-Language'
Expand Down

0 comments on commit 48f6e5c

Please sign in to comment.