Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Images not using HTTPS #9

Closed
grctest opened this issue Apr 23, 2017 · 4 comments
Closed

Images not using HTTPS #9

grctest opened this issue Apr 23, 2017 · 4 comments

Comments

@grctest
Copy link

grctest commented Apr 23, 2017

Hey,

I'm getting the following issue on my glasnost website:
image

Some of the posts by authors contain non-https image links, think we could somehow replace 'http' with 'https' when importing the data from the blockchain?

Cheers 馃憤

@ontofractal
Copy link
Contributor

Technically it's possible, but it would break links to image hosts that do not support SSL connections. I'm not sure this would be a good way to go forward.

@grctest
Copy link
Author

grctest commented Apr 23, 2017

Solved!
image

I added the following meta tag to the layout template's head code:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

No need to manipulate the post's content 馃憤

@grctest grctest closed this as completed Apr 23, 2017
@ontofractal
Copy link
Contributor

That's a great idea, I'll look into implementing this as a config option.

@ontofractal ontofractal reopened this Apr 23, 2017
@ontofractal
Copy link
Contributor

implemented, can be activated in the config using upgrade_insecure_requests: true

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

No branches or pull requests

2 participants