Fakultas Ilmu Komputer UI

Commit ebbcded8 authored by Jonathan Christopher Jakub's avatar Jonathan Christopher Jakub
Browse files

[CHORES] Setup CORS policy

parent b1861cc9
Pipeline #42855 passed with stages
in 60 minutes and 37 seconds
......@@ -32,6 +32,7 @@ DEBUG = True
ALLOWED_HOSTS = ["*"]
CORS_ORIGIN_ALLOW_ALL = True
# Application definition
......@@ -42,14 +43,20 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
# Modules
"corsheaders",
"rest_framework",
"rest_framework.authtoken",
# Apps
"apps.accounts",
"apps.cases",
"apps.logs",
]
MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
......
appdirs==1.4.3
asgiref==3.2.3
astroid==2.3.3
attrs==19.3.0
autopep8==1.5
black==19.10b0
Click==7.0
coverage==5.0.3
dj-database-url==0.5.0
......@@ -13,11 +15,14 @@ entrypoints==0.3
factory-boy==2.12.0
Faker==4.0.1
gunicorn==20.0.4
isort==4.3.21
lazy-object-proxy==1.4.3
mccabe==0.6.1
pathspec==0.7.0
psycopg2-binary==2.8.4
pycodestyle==2.5.0
pyflakes==2.1.1
pylint==2.4.4
python-dateutil==2.8.1
python-dotenv==0.11.0
pytz==2019.3
......@@ -27,3 +32,4 @@ sqlparse==0.3.0
text-unidecode==1.3
toml==0.10.0
typed-ast==1.4.1
wrapt==1.11.2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment