소스 검색

[auth] Allow cors also on cookie auth

Romain Rigaux 4 년 전
부모
커밋
3a1c267c13
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      desktop/core/src/desktop/settings.py

+ 2 - 0
desktop/core/src/desktop/settings.py

@@ -366,6 +366,8 @@ if desktop.conf.CORS_ENABLED.get():
     CORS_ALLOW_ALL_ORIGINS = True
   else:
     CORS_ORIGIN_ALLOW_ALL = True
+  CORS_ALLOW_CREDENTIALS = True  # For when cookie auth
+  SESSION_COOKIE_SAMESITE = None
 
 # Configure database
 if os.getenv('DESKTOP_DB_CONFIG'):