Skip to content

Commit

Permalink
Added corsheaders app
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelometal committed Oct 14, 2017
1 parent 2d38adc commit 9b48fe3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions testapp/testapp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
]

MIDDLEWARE_CLASSES = (
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand All @@ -120,9 +121,19 @@
'django.contrib.sessions',
'django.contrib.staticfiles',
'django.contrib.admin',
'corsheaders',
'pagseguro',
)

CORS_ORIGIN_WHITELIST = (
'google.com',
'hostname.example.com',
'localhost:8000',
'127.0.0.1:9000',
'sandbox.pagseguro.uol.com.br',
)


# =============================================================================
# Load settings_local.py if exists
# =============================================================================
Expand Down

0 comments on commit 9b48fe3

Please sign in to comment.