Follow-up to #54. The site's nginx sends X-Content-Type-Options: nosniff, so a browser refuses any script that isn't served with a JavaScript type. The config relied on the base image's mime.types for that. This change declares the types of every file the site build writes, so the page loads whatever that list contains:
html, js, json, csv, css, svg;
yaml, py, md and txt as plain text.
Anything else still falls back to the image's list. The image build's nginx -t step checks the config on merge.
Follow-up to #54. The site's nginx sends `X-Content-Type-Options: nosniff`, so a browser refuses any script that isn't served with a JavaScript type. The config relied on the base image's `mime.types` for that. This change declares the types of every file the site build writes, so the page loads whatever that list contains:
- `html`, `js`, `json`, `csv`, `css`, `svg`;
- `yaml`, `py`, `md` and `txt` as plain text.
Anything else still falls back to the image's list. The image build's `nginx -t` step checks the config on merge.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
With X-Content-Type-Options: nosniff a browser refuses a script whose type is not
exactly a JavaScript type. Declare the types of every file the site build writes
(html, js, json, csv, css, svg, plus yaml/py/md as text) instead of relying on the
base image's mime.types, so the page loads whatever that list contains.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up to #54. The site's nginx sends
X-Content-Type-Options: nosniff, so a browser refuses any script that isn't served with a JavaScript type. The config relied on the base image'smime.typesfor that. This change declares the types of every file the site build writes, so the page loads whatever that list contains:html,js,json,csv,css,svg;yaml,py,mdandtxtas plain text.Anything else still falls back to the image's list. The image build's
nginx -tstep checks the config on merge.🤖 Generated with Claude Code