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

Simplified cart link url #1757

Merged
merged 2 commits into from
Mar 14, 2017
Merged

Simplified cart link url #1757

merged 2 commits into from
Mar 14, 2017

Conversation

bofrede
Copy link
Contributor

@bofrede bofrede commented Mar 6, 2017

There is no need for the link to include protocol and hostname.

Scenario: A setup with a reverse proxy server in front the the application server.
The Application server runs HTTP. The reverse proxy server runs HTTPS.
When the reverse proxy server serves it as https, it will not load the XHR from a http: location.

There is no need for the link to include protocol and hostname.

Scenario: A setup with a reverse proxy server in front the the application server.
The Application server runs HTTP. The reverse proxy server runs HTTPS.
When the reverse proxy server serves it as https, it will not load the XHR from a http: location.
@jhawthorn
Copy link
Contributor

@bofrede you may want to make sure your reverse proxy sends X-Forwarded-Proto, which rails should understand.

Copy link
Contributor

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 _path is better than _url anyways. Thank you.

Copy link
Contributor

@cbrunsdon cbrunsdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aye, we generally strip SSL on the load balancer and need to ensure we set the forwarded header, but agreed that this is better either way.

@jhawthorn jhawthorn merged commit 6ca3ab6 into solidusio:master Mar 14, 2017
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

Successfully merging this pull request may close these issues.

3 participants