core icon indicating copy to clipboard operation
core copied to clipboard

Add font mime-mappings to the default web.xml

Open jorith88 opened this issue 13 years ago • 2 comments

If I make use of custom fonts on a dotCMS page, I will get the following error in the browser: Resource interpreted as Font but transferred with MIME type application/octet-stream: "".

This is easily fixed by adding the following mime-types to the web.xml:

``` XML eot application/vnd.ms-fontobject

otf font/opentype ttf font/truetype woff application/font-woff \`\`\`

I tried to fix it for my case by adding them to my plugin's web-ext.xml, but they're not copied to web.xml when I deploy it.

jorith88 avatar Jun 25 '13 07:06 jorith88

We don't add these but you can maybe use the tomcat web.xml and use the ROOT dir of a plugin to modify it. Use tomecats web.xml so that you don't overwrite the entire dotcms one which gets manipulated more.

jtesser avatar Jun 25 '13 12:06 jtesser

This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you.

stale[bot] avatar Sep 29 '19 11:09 stale[bot]