Skip to content

Mixed Content Warning Error on SVG Images in Next 11 #466

Closed
@surjithctly

Description

@surjithctly

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:

  1. Create new Next 11 App
  2. Add <Image/> with src pointing to an svg file (*.svg)
  3. Upload to Netlify.app
  4. See the error in the console.

Expected behavior
It has something to do with HTTPS to HTTP error,

Versions

  • Next.js: 11
  • plugin : 3.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions