Skip to content

Instantly share code, notes, and snippets.

@BrightnBubbly
Created May 4, 2020 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrightnBubbly/a0b5d7468f33414b1e42200995ac935f to your computer and use it in GitHub Desktop.
Save BrightnBubbly/a0b5d7468f33414b1e42200995ac935f to your computer and use it in GitHub Desktop.
...
INSTALLED_APPS = [
'chat.apps.ChatConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'corsheaders' #add this new line for the django-cors-headers app
]
CORS_ORIGIN_ALLOW_ALL = True
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment