Ver Fonte

[api] Allow credentials in Cors

Romain Rigaux há 4 anos atrás
pai
commit
bd9ada5a6f
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      desktop/core/src/desktop/settings.py

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

@@ -382,6 +382,7 @@ EMAIL_SUBJECT_PREFIX = 'Hue %s - ' % desktop.conf.CLUSTER_ID.get()
 INSTALLED_APPS.append('corsheaders')
 MIDDLEWARE.insert(0, 'corsheaders.middleware.CorsMiddleware')
 CORS_URLS_REGEX = r'^/api/.*$'
+CORS_ALLOW_CREDENTIALS = True
 if sys.version_info[0] > 2:
   CORS_ALLOW_ALL_ORIGINS = True
 else: