Skip to content

Commit

Permalink
Add warning message for Same Origin Police work-around
Browse files Browse the repository at this point in the history
  • Loading branch information
bengrunfeld committed Mar 10, 2015
1 parent f7a53fe commit 377317f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/handlers.py
Expand Up @@ -51,6 +51,7 @@ def serialize_data(qry):
def initialize_headers(headers, http_verb):
"""Set up the headers for HTTP requests"""

# TODO: Restrict Allow-Origin to trusted domains ONLY!
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = http_verb
headers['Access-Control-Request-Method'] = http_verb
Expand Down

0 comments on commit 377317f

Please sign in to comment.