Skip to content

Instantly share code, notes, and snippets.

@hirobert

hirobert/Flask-CORS.py

Last active Jul 7, 2017
Embed
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
@tokland

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