Skip to content

Commit

Permalink
[auth] Allow cors also on cookie auth
Browse files Browse the repository at this point in the history
  • Loading branch information
romainr committed May 14, 2021
1 parent d27f5d4 commit 3a1c267
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions desktop/core/src/desktop/settings.py
Expand Up @@ -366,6 +366,8 @@
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'):
Expand Down

0 comments on commit 3a1c267

Please sign in to comment.