mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Update conf.py
adds new AXES_ALLOWED_CORS_ORIGINS setting
This commit is contained in:
parent
55438c14bd
commit
3d1e77298d
1 changed files with 3 additions and 0 deletions
|
|
@ -115,3 +115,6 @@ settings.AXES_META_PRECEDENCE_ORDER = getattr(
|
|||
"AXES_META_PRECEDENCE_ORDER",
|
||||
getattr(settings, "IPWARE_META_PRECEDENCE_ORDER", ("REMOTE_ADDR",)),
|
||||
)
|
||||
|
||||
# set CORS allowed origins when calling authentication over ajax
|
||||
settings.AXES_ALLOWED_CORS_ORIGINS = getattr(settings, "AXES_ALLOWED_CORS_ORIGINS", "*")
|
||||
|
|
|
|||
Loading…
Reference in a new issue