0

I've created a React application that works great on Google App Engine; I've deployed it and can verify using my automatically-generated .uc.r.appspot.com URL that everything works as expected.

Now I'm trying to deploy it to my own subdomain, myapp.mydomain.com. I followed Google's instructions for Mapping a Custom Domain, and everything looks right to me... until I try to access the site.

When I try to access the site at my subdomain, I get errors for all of the static files that are automatically built as a part of my React deployment (like /static/js/main.f801b857.js). The errors:

The resource from “https://myapp.mydomain.com/static/js/main.f801b857.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

I'm having trouble wrapping my head around what exactly is the issue here. The error says it's a MIME type mismatch, but when I actually check out the URL it's a 404 error -- my app can't find the static file from the new subdomain. Is this because it can't be found due to MIME? Or is somehow the express server not set up correctly to route to the static asset?

nathan lachenmyer
  • 5,298
  • 8
  • 36
  • 57

0 Answers0