Skip to content

Instantly share code, notes, and snippets.

@osharim
Forked from robhudson/gist:3848832
Created July 30, 2014 23:00
Show Gist options
  • Select an option

  • Save osharim/2e6e77939faca66ca33f to your computer and use it in GitHub Desktop.

Select an option

Save osharim/2e6e77939faca66ca33f to your computer and use it in GitHub Desktop.
class CORSResource(ModelResource):
def create_response(self, *args, **kwargs):
response = super(CORSResource, self).create_response(*args, **kwargs)
response['Access-Control-Allow-Origin'] = '*'
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment