Skip to content

Instantly share code, notes, and snippets.



Last active Jul 7, 2017
What would you like to do?
from flask import make_response
def cors_response(data):
response = make_response(data)
response.headers['Access-Control-Allow-Origin'] = '*'
return response

This comment has been minimized.

Copy link

@tokland tokland commented Jul 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment