|
@@ -69,7 +69,7 @@ def after_request(response : flask.Response):
|
|
# for exemple origin cross origin is when website with javascript has it's server (origin 1)
|
|
# for exemple origin cross origin is when website with javascript has it's server (origin 1)
|
|
# and the javascript call some request on another server (origin 2), typically our API.
|
|
# and the javascript call some request on another server (origin 2), typically our API.
|
|
header['Access-Control-Allow-Credentials'] = 'true'
|
|
header['Access-Control-Allow-Credentials'] = 'true'
|
|
- header['Access-Control-Allow-Origin'] = 'http://127.0.0.1:8000'
|
|
|
|
|
|
+ header['Access-Control-Allow-Origin'] = '*'
|
|
header['Access-Control-Allow-Methods'] = 'GET,DELETE,UPDATE,HEAD,OPTIONS,POST,PUT,PATCH'
|
|
header['Access-Control-Allow-Methods'] = 'GET,DELETE,UPDATE,HEAD,OPTIONS,POST,PUT,PATCH'
|
|
header['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Authorization'
|
|
header['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Authorization'
|
|
header['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Authorization'
|
|
header['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Authorization'
|