Spring Boot 2.0.0 & static resources with different domains for the same app
Spring Boot 2.0.0 & static resources with different domains for the same app I have migrated a web app from Spring Boot 1.5.10 to 2.0.0, which serves content trough different domains and it is deployed with Heroku. The main domain works fine, but with the other ones the static elements like Javascript, CSS, images and icons don't work and the browser arises this error: Refused to execute script from '' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled The static resources are located at: /resources/static/css /resources/static/css /resources/static/js /resources/static/js /resources/static/images /resources/static/images All domains are secured with a Let's Encrypt SSL certificate, provided by Heroku. The domains are all redirected, including the main one, with a CNAME to the address provided by Heroku. The main domain has access to all the content, and the secondary ones just can access to the content inside a d...