Archived
Friendly CORS defaults
This commit is contained in:
1 parent
267bcbf54a
commit
aca11a7381
1 file changed
+6
-6
@@ -160,10 +160,10 @@ AUTH_USER_MODEL = 'dusken.Member'
|
||||
|
||||
TASTYPIE_DEFAULT_FORMATS = ['json']
|
||||
|
||||
CORS_ORIGIN_ALLOW_ALL = False
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
# Allow Ajax calls only from tuple of domain:port
|
||||
CORS_ORIGIN_WHITELIST = (
|
||||
'127.0.0.1:3000',
|
||||
'dusken.neuf.no:3000',
|
||||
'dusken.neuf.no',
|
||||
)
|
||||
#CORS_ORIGIN_WHITELIST = (
|
||||
# '127.0.0.1:3000',
|
||||
# 'dusken.neuf.no:3000',
|
||||
# 'dusken.neuf.no',
|
||||
#)
|
||||
Reference in new issue
Block a user