Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Upload not working #65

Open
PAmari121 opened this issue Jun 8, 2021 · 0 comments
Open

Image Upload not working #65

PAmari121 opened this issue Jun 8, 2021 · 0 comments

Comments

@PAmari121
Copy link

PAmari121 commented Jun 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant