Skip to content

Commit aa30ec1

Browse files
Feat: Allow all CORS origins, headers, and methods
Configured Django settings to allow all Cross-Origin Resource Sharing (CORS) requests. This includes setting CORS_ALLOW_ALL_ORIGINS = True and explicitly defining CORS_ALLOW_HEADERS and CORS_ALLOW_METHODS to permit all common headers and HTTP methods.
1 parent e450d80 commit aa30ec1

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

backend.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

ecommerce_api/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
ALLOWED_HOSTS = []
3232

33+
CORS_ALLOW_ALL_ORIGINS = True
3334
# Application definition
3435
# ╭──────────────────────────────────────────────────────────╮
3536
# │ Application Configuration │

0 commit comments

Comments
 (0)