Skip to content

Commit

Permalink
Merge pull request #16 from kysre/add-cors-support
Browse files Browse the repository at this point in the history
Allow all origins for cors
  • Loading branch information
kysre authored Feb 1, 2024
2 parents a0efa04 + 3eacd37 commit f124ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion johar/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,18 @@
}

MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

CORS_ALLOW_ALL_ORIGINS = True

ROOT_URLCONF = 'johar.urls'

TEMPLATES = [
Expand Down

0 comments on commit f124ba0

Please sign in to comment.