final version
This commit is contained in:
@@ -213,3 +213,12 @@ def patchnotes_get(): # noqa: E501
|
||||
mimetype='application/json',
|
||||
status=200,
|
||||
)
|
||||
|
||||
def cors_options_handler():
|
||||
from flask import make_response
|
||||
response = make_response('')
|
||||
response.headers['Access-Control-Allow-Origin'] = '*'
|
||||
response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, DELETE, OPTIONS'
|
||||
response.headers['Access-Control-Allow-Headers'] = 'Content-Type, Authorization'
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user