Skip to content

Commit

Permalink
Merge pull request #30 from HE-Arc/add-allowed-host
Browse files Browse the repository at this point in the history
add allowed host to settings and .env
  • Loading branch information
maelys-buhler authored Mar 16, 2024
2 parents 97910fe + b489131 commit 55c789b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/.env.cicd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FRONTEND_URL=http://localhost:5173
BACKEND_URL=http://127.0.0.1:5173
BACKEND_HOST=127.0.0.1:5173
DEBUG=True
SECRET_KEY=django-insecure-^=xy+akjdagtjisch+_5fku9!1aw)hhf_&feny8r3@6ds%rds
4 changes: 3 additions & 1 deletion api/masteriq/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv('DEBUG')

ALLOWED_HOSTS = []
ALLOWED_HOSTS = [
os.getenv('BACKEND_HOST')
]

CORS_ALLOWED_ORIGINS = [
os.getenv('FRONTEND_URL'),
Expand Down

0 comments on commit 55c789b

Please sign in to comment.