I’m trying to set up YARP as a reverse proxy on a linux container to allow moving away from legacy asp.net forms.
I get served responses from the IIS server but the static routes don’t seem to be accessible and the mime types are being stripped from all CSS / JS files
There’s a UrlRewrite redirecting all /static-x.y.z to /static in the IIS server. For most of the files I do get the file in the response but without mime type. For others the routing seems incorrect as I get a html page in response ( for example in favicon.ico )
So far I’ve made sure that all authorization sections in web.config are set to users=”*”. I’ve removed the no-sniff header temporarily and that helped with some of the files but not all, Javascript is still not executing because libraries can’t be found
I’m hoping someone else has had this problem and can point me in the right direction as I’ve been googling for several days but most issues I come across are hosting static files on the same server as YARP
user24802522 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.