Skip to content

Commit

Permalink
Updated CORS headers for deployed app
Browse files Browse the repository at this point in the history
  • Loading branch information
krugergui committed Oct 18, 2023
1 parent ddc6f50 commit d530599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/shift_3_womenpp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,15 @@
"http://192.168.0.50:3000", # for network
"http://localhost:8000", # for localhost (Developlemt)
"http://192.168.0.50:8000", # for network (Development)
"https://nextjsapp-iwghenktca-ew.a.run.app", # Deployed app
)

CSRF_TRUSTED_ORIGINS = [
"http://localhost:3000", # for localhost (REACT Default)
"http://192.168.0.50:3000", # for network
"http://localhost:8000", # for localhost (Developlemt)
"http://192.168.0.50:8000", # for network (Development)
"https://nextjsapp-iwghenktca-ew.a.run.app", # Deployed app
]

CORS_ALLOW_HEADERS = [
Expand All @@ -206,7 +208,7 @@
]


SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
# SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

# Project parameters

Expand Down

0 comments on commit d530599

Please sign in to comment.