bbovenzi commented on code in PR #42222:
URL: https://github.com/apache/airflow/pull/42222#discussion_r1766399236


##########
airflow/api_fastapi/app.py:
##########
@@ -43,6 +44,18 @@ def create_app() -> FastAPI:
 
     init_views(app)
 
+    origins = [
+        "http://localhost:28080";,
+        "http://localhost:8080";,
+    ]
+    app.add_middleware(
+        CORSMiddleware,
+        allow_origins=origins,
+        allow_credentials=True,
+        allow_methods=["*"],
+        allow_headers=["*"],
+    )
+

Review Comment:
   I am on vacation for the next week so feel free to contribute to this PR. Or 
merge this one and fix the urls in a follow-up PR



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to