Frontend #5

Merged
kevinpauer merged 10 commits from frontend into main 2022-03-17 13:29:54 +00:00
Showing only changes of commit 37ab7199b4 - Show all commits

View File

@ -34,6 +34,14 @@ def create_app():
# interface blueprint # interface blueprint
application.register_blueprint(interface_blueprint) application.register_blueprint(interface_blueprint)
# CORS: Allow * for developing
@application.after_request # blueprint can also be app~~
def after_request(response):
header = response.headers
header['Access-Control-Allow-Headers'] = 'Content-Type'
header['Access-Control-Allow-Origin'] = '*'
return response
return application return application