Skip to content

Conversation

@alexnorell
Copy link
Contributor

@alexnorell alexnorell commented Dec 10, 2025

Summary

Fixes the workflow builder to work with Chrome 142+ which enforces Private Network Access (PNA) security.

Changes:

  • Add local-network-access permission to builder iframe (required by Chrome 142+)
  • Add PNA preflight handling in PathAwareCORSMiddleware to return Access-Control-Allow-Private-Network: true
  • Expand CORS path regex to include /workflows/ endpoints used by the builder UI

Test plan

  • Build docker image with ENABLE_BUILDER=true
  • Open http://localhost:9003/build in Chrome incognito
  • Verify API calls to /build/api and /workflows/ endpoints succeed
  • Verify workflow builder UI loads and functions correctly

@alexnorell alexnorell requested a review from hansent as a code owner December 10, 2025 02:11
@alexnorell alexnorell force-pushed the fix/builder-cors-origins branch from 6a78059 to 45d8ba3 Compare December 10, 2025 02:49
@alexnorell alexnorell changed the title Add BUILDER_CORS_ORIGINS for multiple allowed origins Fix workflow builder CORS and Private Network Access for Chrome 142+ Dec 10, 2025
yeldarby
yeldarby previously approved these changes Dec 10, 2025
- Add local-network-access permission to builder iframe
- Add PNA preflight handling in PathAwareCORSMiddleware
- Expand CORS path regex to include /workflows/ endpoints
@alexnorell alexnorell force-pushed the fix/builder-cors-origins branch from 45d8ba3 to 358d2c2 Compare December 10, 2025 02:56
@alexnorell alexnorell requested a review from yeldarby December 10, 2025 02:56
@alexnorell alexnorell changed the title Fix workflow builder CORS and Private Network Access for Chrome 142+ Fix workflow builder Private Network Access for Chrome 142+ Dec 10, 2025
@alexnorell alexnorell merged commit 9c229d0 into main Dec 10, 2025
51 checks passed
@alexnorell alexnorell deleted the fix/builder-cors-origins branch December 10, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants