cors issues

main
Domeniko Gentner 4 years ago
parent fa63472d8c
commit a29104f172
  1. 4
      server.py

@ -107,7 +107,7 @@ def inject_language():
@laberflask.after_request @laberflask.after_request
def after_request(response): def after_request(response):
response.headers.add('Access-Control-Allow-Origin', '*') response.headers.add('Access-Control-Allow-Origin', '*')
response.headers.add('Access-Control-Allow-Headers', 'Content-Type,Authorization') 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-Methods', 'GET,POST,OPTIONS')
response.headers.add('Access-Control-Allow-Credentials', 'true') response.headers.add('Access-Control-Allow-Credentials', 'true')
return response return response

Loading…
Cancel
Save