-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Description
when open http://localhost/auth from host getting this error on login Failed to receive a Password Auth request response: "[object XMLHttpRequest]. When i inspect it say cors missing allow origin.
How should i login into thorium from my host.
already set in thorium-cluster.yml
cors:
insecure: true
also in operator i set this
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: thorium-default-ingress
namespace: thorium
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/proxy-body-size: 100m
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-headers: "*"
nginx.ingress.kubernetes.io/cors-allow-credentials: "false"
nginx.ingress.kubernetes.io/cors-max-age: "86400"
spec:
ingressClassName: nginx
rules:
- host: localhost
http:
paths:
- path: "/api/?(.*)"
pathType: ImplementationSpecific
backend:
service:
name: thorium-api
port:
number: 80
- path: "/ui/?(.*)"
pathType: ImplementationSpecific
backend:
service:
name: thorium-api
port:
number: 80
- path: "/assets/?(.*)"
pathType: ImplementationSpecific
backend:
service:
name: thorium-api
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: thorium-ui-ingress
namespace: thorium
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-headers: "*"
nginx.ingress.kubernetes.io/proxy-body-size: 100m
nginx.ingress.kubernetes.io/rewrite-target: "/ui/$1"
spec:
ingressClassName: nginx
rules:
- host: localhost
http:
paths:
- path: /?(.*)
pathType: ImplementationSpecific
backend:
service:
name: thorium-api
port:
number: 80
Metadata
Metadata
Assignees
Labels
No labels