Skip to content
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

Force img tag to be https on https site #137

Open
NicholasJohn16 opened this issue Jan 23, 2018 · 3 comments
Open

Force img tag to be https on https site #137

NicholasJohn16 opened this issue Jan 23, 2018 · 3 comments
Labels

Comments

@NicholasJohn16
Copy link

Is there anyway to force the img tag to use https when accessing a site over https? A few of my users are using non-secure links and I'd rather the images just not work on https then transfer insecure images.

@milesj
Copy link
Owner

milesj commented Jan 23, 2018

Would an agnostic // URL work for you?

@NicholasJohn16
Copy link
Author

If someone visits the site on http and the img link is https, (like if its hosted at imgur.com which defaults to https) I wouldn't want that downgraded to http.

My thinking was that it'd be best to just force https in certain situations. I could handle checking if its https if there was just an option for the imageFilter that allowed for https to be forced.

@milesj
Copy link
Owner

milesj commented Jan 23, 2018

Sounds good. Feel free to submit a PR.

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

No branches or pull requests

3 participants