Fix oauth2 authorisation form not working

This commit is contained in:
Jens Langhammer
2018-11-25 12:31:55 +01:00
parent 9967319294
commit 76a43a7818
6 changed files with 25 additions and 24 deletions

View File

@ -3,6 +3,10 @@
CORS_ORIGIN_ALLOW_ALL = True
REQUEST_APPROVAL_PROMPT = 'auto'
INSTALLED_APPS = [
'oauth2_provider',
'corsheaders',
]
MIDDLEWARE = [
'oauth2_provider.middleware.OAuth2TokenMiddleware',
'corsheaders.middleware.CorsMiddleware',