Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can β€” learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company πŸ‘‡

cors - open api - remove check

CarterPerez-deve4db6ea35940
diff --git a/PROJECTS/bug-bounty-platform/backend/app/config.py b/PROJECTS/bug-bounty-platform/backend/app/config.py
index 0b8e844c..77261727 100644
--- a/PROJECTS/bug-bounty-platform/backend/app/config.py
+++ b/PROJECTS/bug-bounty-platform/backend/app/config.py
@@ -191,10 +191,6 @@ class Settings(BaseSettings):
if self.ENVIRONMENT == Environment.PRODUCTION:
if self.DEBUG:
raise ValueError("DEBUG must be False in production")
- if self.CORS_ORIGINS == ["*"]:
- raise ValueError(
- "CORS_ORIGINS cannot be ['*'] in production"
- )
return self