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

Explicitly set CORS in http request and clean up extra whitespace #87

Merged
merged 2 commits into from
Nov 20, 2020

Conversation

sharon-wang
Copy link
Member

Fixes: #60

When using cors (Cross-Origin Resource Sharing), mixed content is blocked. This means that any content retrieved from HTTP (instead of HTTPS) will be blocked when working in an HTTPS context. Since we expect endpoints to resolve to an HTTPS url, we do not want to permit content loaded from HTTP. It is part of the SPSP Endpoint specification that HTTPS is required.

As such, we now explicitly include mode: 'cors' in our http request to indicate this setting is needed, even though it is the default setting if left unspecified.

Signed-off-by: sharon-wang <sharon-wang-cpsc@outlook.com>
Signed-off-by: sharon-wang <sharon-wang-cpsc@outlook.com>
@vezwork vezwork merged commit 364a304 into esse-dev:master Nov 20, 2020
@sharon-wang sharon-wang deleted the updateppres branch November 20, 2020 04:35
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.

Confirm if Akita payment pointer resolution is spec compliant
2 participants