Jelajahi Sumber

opetion ignored

ash 2 tahun lalu
induk
melakukan
c57facba03
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Backend/Sources/View/view_basics_api.py

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

@@ -45,7 +45,7 @@ def define_basic_api(app) :
             logger.debug("request json body : " + str(request.json))
 
 
-        if not request.path == __api_login_url__ :
+        if not request.path == __api_login_url__ and request.method != "OPTIONS":
 
 
             auth_header_value = request.headers.get('x-Auth-Token', None)