Skip to content
Browse files

Allow CORS. Closes #6

  • Loading branch information...
1 parent c70796a commit c33f23fb5ce0ee5720c3a8534d249b3cd3ae8d59 @jasoncartwright jasoncartwright committed Dec 11, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 getfvco/__init__.py
View
3 getfvco/__init__.py
@@ -369,6 +369,9 @@ def writeHeaders(self):
# MIME Type
self.response.headers['Content-Type'] = "image/x-icon"
+ # CORS
+ self.response.headers['Access-Control-Allow-Origin'] = "*"
+
# Set caching headers
self.response.headers['Cache-Control'] = "public, max-age=2592000"
self.response.headers['Expires'] = (datetime.now()+timedelta(days=30)).strftime("%a, %d %b %Y %H:%M:%S %z")

0 comments on commit c33f23f

Please sign in to comment.
Something went wrong with that request. Please try again.