Skip to content

Commit

Permalink
fix #92 - allow all origins via django-cors-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed Jan 3, 2015
1 parent 53292b0 commit 8842e44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codesy/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.github',
'corsheaders',
'mailer',
'rest_framework',
'rest_framework.authtoken',
Expand All @@ -63,6 +64,7 @@

MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down Expand Up @@ -147,6 +149,8 @@
TEST_RUNNER = config('TEST_RUNNER',
default='django.test.runner.DiscoverRunner')

CORS_ORIGIN_ALLOW_ALL = True

REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PyGithub==1.25.2
dj-database-url==0.3.0
dj-static==0.0.6
django-allauth==0.18.0
django-cors-headers==1.0.0
django-mailer==0.1.0
django-toolbelt==0.0.1
django-rest-swagger==0.2.7
Expand Down

0 comments on commit 8842e44

Please sign in to comment.