Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow CORS. Closes #6

  • Loading branch information...
commit c33f23fb5ce0ee5720c3a8534d249b3cd3ae8d59 1 parent c70796a
@jasoncartwright jasoncartwright authored
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")
Please sign in to comment.
Something went wrong with that request. Please try again.