Friendly CORS defaults

This commit is contained in:
nikolark committed 2013-11-30 12:09:41 +01:00
1 parent 267bcbf54a
commit aca11a7381
1 file changed
+6 -6
+6 -6
View File
@@ -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',
#)