Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. CORS_ORIGIN_ALLOW_ALL = True
  2. CORS_ORIGIN_WHITELIST = (
  3. '127.0.0.1',
  4. )
  5.  
  6. CORS_ALLOW_HEADERS = (
  7. 'x-requested-with',
  8. 'content-type',
  9. 'accept',
  10. 'origin',
  11. 'authorization',
  12. 'x-csrftoken',
  13. 'x-api-key'
  14. )
  15.  
  16. MIDDLEWARE_CLASSES = ('corsheaders.middleware.CorsMiddleware')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement