ash 2 gadi atpakaļ
vecāks
revīzija
1528cf009e
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Backend/Sources/View/view_manager.py

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

@@ -68,8 +68,8 @@ def after_request(response : flask.Response):
     # adding this to the header to allow cross origin
     # 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.
-    #header['Access-Control-Allow-Credentials'] =  'true'
-    #header['Access-Control-Allow-Origin']  = '*'
+    header['Access-Control-Allow-Credentials'] =  'true'
+    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'