mirror of
https://github.com/alerta/alerta.git
synced 2025-03-16 22:33:29 +00:00
Fix CORS origin defaults for quick start (#422)
This commit is contained in:
parent
c23e61d24c
commit
03d03a622b
1 changed files with 4 additions and 3 deletions
|
@ -58,9 +58,10 @@ API_KEY_EXPIRE_DAYS = 365 # 1 year
|
|||
|
||||
CORS_ALLOW_HEADERS = ['Content-Type', 'Authorization', 'Access-Control-Allow-Origin']
|
||||
CORS_ORIGINS = [
|
||||
'http://try.alerta.io',
|
||||
'http://explorer.alerta.io',
|
||||
'http://localhost'
|
||||
# 'http://try.alerta.io',
|
||||
# 'http://explorer.alerta.io',
|
||||
'http://localhost',
|
||||
'http://localhost:8000'
|
||||
]
|
||||
CORS_SUPPORTS_CREDENTIALS = AUTH_REQUIRED
|
||||
|
||||
|
|
Loading…
Reference in a new issue