I’ve deployed my path based ingress on /test path , when I’m trying to access the application using the /test path it’s hitting the page.
We can see the loading icon but the css and js files are trying to fetch from / path instead of /test path
And this issue I’m facing for many frontend and backend applications
I’ve added below annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite target: /$2
nginx.org/server-snippet: "proxy ssl_ verify off;
nginx.ingress.kubernetes.io/configuration-snippet:
add_ header x-Content- Type-Options off;
more set headers "strict-Transport Security: max- age=31536000;
add header Cache-Control "no-store";
add header Pragma "no-cache";
add header X-Frame-Options "deny";
add header x-Content-Type-O Options nosniff";