Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CORS_ORIGIN_ALLOW_ALL = True
- CORS_ORIGIN_WHITELIST = (
- '127.0.0.1',
- )
- CORS_ALLOW_HEADERS = (
- 'x-requested-with',
- 'content-type',
- 'accept',
- 'origin',
- 'authorization',
- 'x-csrftoken',
- 'x-api-key'
- )
- MIDDLEWARE_CLASSES = ('corsheaders.middleware.CorsMiddleware')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement