Sign in

Publii native scripts cause Chrome to block website and flag site as insecure


Just found out what the issue could be. It seems there is an issue with mixed content in which certain links are called as https and others as http.

I just checked the server configuration again and realised that http and not https is set by default for Amazon s3. Perhaps https could be set by default for s3. Another thing that threw me off was the use of absolute paths, until then I never really cared as I just assumed relative paths would be used.

Despite the change to https which solved the warnings for, I m still getting warnings for the s3 url:

index.html:formatted:1 Unsafe attempt to load URL from frame with URL Domains, protocols and ports must match.

I also tried to set links to relative path and strangely for the… url, the images didn’t load.