Skip to content

Instantly share code, notes, and snippets.

@alejandrobernardis
Created August 13, 2012 04:24
Show Gist options
  • Select an option

  • Save alejandrobernardis/3336962 to your computer and use it in GitHub Desktop.

Select an option

Save alejandrobernardis/3336962 to your computer and use it in GitHub Desktop.
Cross
def options(self):
self.set_header('Access-Control-Allow-Origin', '*')
self.set_header('Access-Control-Allow-Methods', 'POST, OPTIONS')
self.set_header('Access-Control-Max-Age', 1000)
self.set_header('Access-Control-Allow-Headers', '*')
self.set_status(200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment