How to disable mixed content detection/notifications?

Netlify is flagging a namespace URI, in this case http://purl.org/dc/elements/1.1/, as “mixed content”. I don’t actually have mixed content It’s kinda annoying to get an email notification when I deploy my site.

Here’s the log (although I don’t think you need it):

3:37:14 PM: Post processing - HTML
3:37:14 PM: Mixed content detected in: /404.html
3:37:14 PM: --> insecure link urls:
3:37:14 PM:   - http://purl.org/dc/elements/1.1/
3:37:14 PM: Mixed content detected in: /projetos/math-express/index.html
3:37:14 PM: --> insecure link urls:
3:37:14 PM:   - http://purl.org/dc/elements/1.1/
3:37:14 PM: Mixed content detected in: /index.html
3:37:14 PM: --> insecure link urls:
3:37:14 PM:   - http://purl.org/dc/elements/1.1/
3:37:14 PM: Mixed content detected in: /e-mail.html
3:37:14 PM: --> insecure link urls:
3:37:14 PM:   - http://purl.org/dc/elements/1.1/
3:37:14 PM: Mixed content detected in: /projetos/cábulas-calc/instruções-transf-windows.html
3:37:14 PM: --> insecure link urls:
3:37:15 PM:   - http://purl.org/dc/elements/1.1/
3:37:15 PM: Mixed content detected in: /projetos/cábulas-calc/instruções-de-visualização.html
3:37:15 PM: --> insecure link urls:
3:37:15 PM:   - http://purl.org/dc/elements/1.1/
3:37:15 PM: Mixed content detected in: /sobre/info-legal.html
3:37:15 PM: --> insecure link urls:
3:37:15 PM:   - http://purl.org/dc/elements/1.1/
3:37:15 PM: Mixed content detected in: /projetos/cábulas-calc/como-fazer-cábulas.html
3:37:15 PM: --> insecure link urls:
3:37:15 PM:   - http://purl.org/dc/elements/1.1/
3:37:15 PM: Mixed content detected in: /projetos/cábulas-calc/index.html
3:37:15 PM: --> insecure link urls:
3:37:15 PM:   - http://purl.org/dc/elements/1.1/

Could you not update the references to point to https://purl.org/dc/elements/1.1/? Then, you’re quashing the error itself and not suppressing the warning :smiley:!

Thanks for your reply. Unfortunately, https://purl.org/dc/elements/1.1/ is actually a completely different namespace from http://purl.org/dc/elements/1.1/. From WHATWG:

Humans make a number of assumptions about how URLs can be changed (capitalization, trailing /, http vs https, www or not, etc) which are often true for real URLs due to nice server software, but are not true for namespaces, which are opaque strings.

You could perhaps proxy to the content:

/purl-elements http://purl.org/dc/elements/1.1/ 200

This is a namespace. Namespaces are not links; they’re just strings that often have the structure of an URL, but are not interpreted as URLs. Changing the namespace, even slightly, is not an option, as it would completely change its meaning.

The namespace string is getting incorrectly flagged as “mixed content”, so I would like to disable mixed content alerts.

Edit: This isn’t a big deal for me, as I might remove that namespace in the future.

D’oh. Sorry about that, it’s finally clicked. That’ll teach me for rushing.

I’ve taken a look at DCMI: Expressing Dublin Core™ metadata using HTML/XHTML meta and link elements which states:

For all DCMI terms, the convention used by the DCMI community is to split the term URI into an expanded name at the right-most ‘/’ (forward slash) character (as in the first example above). Also, the characters used for the prefix in a DC-HTML Prefixed Name are not significant, but communities often adopt a convention on the common use of a prefix to facilitate human readability.

From this, perhaps I’m wrong in assuming: anything before (and including) the // for the protocol is added for mere readability and can be altered?

I believe the “DC-HTML Prefixed Name” refers to the name attribute in the meta element, not to the namespace URL.

From the webpage you linked to:

The following examples shows a namespace declaration and the use of a DC-HTML Prefixed Name for the value of the name attribute of the meta element:

Example 5: DC-HTML Prefixed Name as attribute value (HTML)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head profile="http://dublincore.org/specifications/dublin-core/dc-html/2008-08-04/">
    <title>Services to Government</title>
    <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" >
    <meta name="DC.title" content="Services to Government" >
  </head>
  <body>
  </body>
</html>

In that case, the “DC-HTML Prefixed Name” is DC.title, and its prefix is DC. “The characters used for the prefix in a DC-HTML Prefixed Name are not significant” means that DC could be replaced by any other prefix.


In the absence of a better solution, I created a filter in my email account that automatically deletes messages from Netlify about mixed content. It’s a bit hacky, but it should work for me.