-
Notifications
You must be signed in to change notification settings - Fork 86
Mixed Content Warning Error on SVG Images in Next 11 #466
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
Comments
We are having the exact same problem. |
The error on that site is because you're deploying from your local machine, and pushing your local sharp module:. Do you have a build deployed from a build on the Netlify server? |
@ascorbic Thanks. I was now able to replicate the Mixed content issue. Demo: https://dazzling-lamarr-f47862.netlify.app/ |
I also experienced this issue. The following <meta
httpEquiv="Content-Security-Policy"
content="upgrade-insecure-requests"
></meta> |
Thanks :) That helped. I was still facing this issue.But yeah this one worked for me. |
@nitindutta5 This has been fixed in v3.6.1, so it will be good if you upgrade the package instead. |
@surjithctly, Is there an option to upgrade the plugin from the UI? I uninstalled and installed the plugin but it didn't work. I was still getting the "Mixed content" warning error. I ended up using the meta tag workaround. |
@evojewel You can install this plugin in your project root, then netlify will use that instead of default (old) version. |
Describe the bug
When using an SVG image in
<Image/>
it throws mixed content warning error in Next 11.Mixed Content: The page at 'https://site.netlify.app/' was loaded over HTTPS, but requested an insecure image 'http://site.netlify.app/img/graphic.svg?url=%2Fimg%2Fgraphic.svg&w=1920&q=75'. This request has been blocked; the content must be served over HTTPS.
I have created a demo to replicate the issue, the SVG is not loading, instead of throwing 502 error this time.
https://nostalgic-mcnulty-ff9b66.netlify.app/
To Reproduce
Steps to reproduce the behavior:
<Image/>
with src pointing to an svg file (*.svg
)Expected behavior
It has something to do with HTTPS to HTTP error,
Versions
The text was updated successfully, but these errors were encountered: