ash %!s(int64=2) %!d(string=hai) anos
pai
achega
491923a0f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Backend/Sources/View/view_manager.py

+ 1 - 1
Backend/Sources/View/view_manager.py

@@ -70,7 +70,7 @@ def after_request(response : flask.Response):
     # and the javascript call some request on another server (origin 2), typically our API.
     header['Access-Control-Allow-Origin']  = '*'
     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, x-Auth-Token'
 
 
     logger.debug(response.__dict__)