ventrian / News-Articles

News Articles for DNN has been helping DNN administrators to publish articles and blogs to their DNN portals since 2004.
MIT License
38 stars 24 forks source link

Image Upload not working #65

Open PAmari121 opened 3 years ago

PAmari121 commented 3 years ago

Upgraded to DNN Platform 9.9.1. Upgraded News Articles to the latest version, 12.0, and found one issue.

Browser "Console" showed a looping error:

The resource from “https://journalstaging.dnn4less.com/jcopdf/articleType/dnn.controls.dnntoolbar.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). SubmitNews downloadable font: kern: Too large subtable (font-family: "pb_semibold" style:normal weight:400 stretch:100 src index:0) source: https://journalstaging.dnn4less.com/DesktopModules/admin/Dnn.PersonaBar/css/open-sans.semibold.ttf downloadable font: Table discarded (font-family: "pb_semibold" style:normal weight:400 stretch:100 src index:0) source: https://journalstaging.dnn4less.com/DesktopModules/admin/Dnn.PersonaBar/css/open-sans.semibold.ttf The resource from “https://journalstaging.dnn4less.com/jcopdf/articleType/dnn.controls.dnntoolbar.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

Went to web.config and removed:

<add name="X-Content-Type-Options" value="nosniff" />

After removing that, News Articles worked perfectly, image upload was fine, and there were no more errors.

Would rather not keep that removed for security reasons, so curious to see what is causing it.

Thanks Pete