|
|
|
@ -109,5 +109,8 @@ def after_request(response): |
|
|
|
|
response.headers.add('Access-Control-Allow-Origin', '*') |
|
|
|
|
response.headers.add('Access-Control-Allow-Headers', 'Content-Type') |
|
|
|
|
response.headers.add('Access-Control-Allow-Methods', 'GET,POST,OPTIONS') |
|
|
|
|
response.headers.add('Access-Control-Allow-Credentials', 'true') |
|
|
|
|
response.headers.add("Access-Control-Allow-Headers", |
|
|
|
|
"Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, " |
|
|
|
|
"Access-Control-Request-Method, Access-Control-Request-Headers") |
|
|
|
|
# response.headers.add('Access-Control-Allow-Credentials', 'true') |
|
|
|
|
return response |
|
|
|
|