Skip to content

Test Deployment via breeze in KinD/K8s need to realx Same Origin Policy #47521

@jscheffl

Description

@jscheffl

Body

When a local K8s cluster (via KinD) is started through breeze k8s ... and you attempt to open the exposed URL in the browser (it uses a random forwarded port, e.g. http://localhost:13582/ ) then you get the following errors:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/static/assets/index-gP-zsNBT.js. (Reason: CORS request did not succeed). Status code: (null).

Module source URI is not allowed in this document: “http://localhost:8080/static/assets/index-gP-zsNBT.js”.

Therefor the KinD/K8s deployment in breeze needs to be enhanced such that the forwarded ports are accepted from web server / UI.
(Not an expert in this area but might be a general K8s deployment problem outside breeze as well? Or is just a port / hostname from breeze to be set to config dynamically?)

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Labels

area:UIRelated to UI/UX. For Frontend Developers.area:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final codearea:dev-toolskind:bugThis is a clearly a bugkind:metaHigh-level information important to the community

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions