hawtio / hawtio-online

Hawtio on Kubernetes/OpenShift
Apache License 2.0
23 stars 25 forks source link

Proxy Jolokia traffic to avoid CORS issues #21

Closed astefanutti closed 6 years ago

astefanutti commented 6 years ago

The following change introduced in the OpenShift Ansible playbook openshift/openshift-ansible#5264 breaks the current integration by default as subdomain origins do not match CORS allowed origins configured on the master server.

tadayosi commented 6 years ago

I'm curious about how you resolved it. What kind of proxy is it using now?

astefanutti commented 6 years ago

I've used NGINX reverse proxy: https://github.com/hawtio/hawtio-online/blob/66e8e4fe1ac0e4fa07c176614e8095d5ee77bdfb/docker/nginx.conf#L26-L36

tadayosi commented 6 years ago

@astefanutti Thanks!