Browse Source

[ENG-3583] Respect cors_allowed_origins for backend HTTP requests (#4533)

Masen Furer 5 tháng trước cách đây
mục cha
commit
f4aea1b3ab
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      reflex/app.py

+ 1 - 1
reflex/app.py

@@ -436,7 +436,7 @@ class App(MiddlewareMixin, LifespanMixin):
             allow_credentials=True,
             allow_methods=["*"],
             allow_headers=["*"],
-            allow_origins=["*"],
+            allow_origins=get_config().cors_allowed_origins,
         )
 
     @property