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

Trim protocol from any URL served on API response #45

Open
tyohan opened this issue Apr 10, 2017 · 0 comments
Open

Trim protocol from any URL served on API response #45

tyohan opened this issue Apr 10, 2017 · 0 comments

Comments

@tyohan
Copy link
Contributor

tyohan commented Apr 10, 2017

Our API especially for some images served through HTTP protocol, this make some issue on our web app and AMP site because the content not fully served through secure protocol. So we need to filter dan remove all protocol of URL that serves from Shuvayatra server.

So instead http://api.shuvayatra.org/... it will serve //:api.shuvayatra.org/... then let browsers decided which protocol will use depend on what protocol the page access.

But to as a note, this could become an issue if we serve content from other servers which not support HTTPS protocol. But since our server supports it, all content from our server must serve through HTTPS.

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

No branches or pull requests

1 participant