Only allow musiclist as cors origin
This commit is contained in:
@@ -8,10 +8,6 @@ CORS_ORIGIN_ALLOW_ALL = False
|
|||||||
CORS_ORIGIN_WHITELIST = [
|
CORS_ORIGIN_WHITELIST = [
|
||||||
'musiclist.danielcortes.xyz',
|
'musiclist.danielcortes.xyz',
|
||||||
]
|
]
|
||||||
CORS_ORIGIN_REGEX_WHITELIST = [
|
|
||||||
'localhost((:\d)\d{0,3})?',
|
|
||||||
'127.0.0.1((:\d)\d{0,3})?',
|
|
||||||
]
|
|
||||||
|
|
||||||
"""Security"""
|
"""Security"""
|
||||||
SECURE_HSTS_SECONDS = 31536000
|
SECURE_HSTS_SECONDS = 31536000
|
||||||
|
|||||||
Reference in New Issue
Block a user