Skip to content

Trim protocol from any URL served on API response #45

@tyohan

Description

@tyohan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions