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

PB-977: Don't use service-proxy for internal domain and for GPX that support CORS - #patch #1061

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

ltshb
Copy link
Contributor

@ltshb ltshb commented Sep 10, 2024

GPX file used always the service-proxy even if the server supported CORS. Also
on the service-proxy we could see that some requests were made over service-proxy
for internal server like public.geo.admin.ch. This was due to the fact that if
for any reason the initial request failed (network failure) we fallback to the
service proxy. Now in that case we don't fallback anymore.

NOTE unfortunately there is no way for a web application to check for CORS support
see https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors

Test link

@github-actions github-actions bot added the bug label Sep 10, 2024
@github-actions github-actions bot changed the title PB-977: Don't use service-proxy for internal domain and for GPX that support CORS PB-977: Don't use service-proxy for internal domain and for GPX that support CORS - #patch Sep 10, 2024
Copy link

cypress bot commented Sep 10, 2024

web-mapviewer    Run #3265

Run Properties:  status check passed Passed #3265  •  git commit 2dcf44ed08: PB-977: Don't use service-proxy for internal domain and for GPX that support COR...
Project web-mapviewer
Branch Review bug-PB-977-proxy
Run status status check passed Passed #3265
Run duration 04m 55s
Commit git commit 2dcf44ed08: PB-977: Don't use service-proxy for internal domain and for GPX that support COR...
Committer Brice Schaffner
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 210
View all changes introduced in this branch ↗︎

@ltshb ltshb force-pushed the bug-PB-977-proxy branch 5 times, most recently from b0b7f17 to 555957d Compare September 10, 2024 12:07
@ltshb ltshb requested a review from pakb September 10, 2024 12:35
…support CORS

GPX file used always the service-proxy even if the server supported CORS. Also
on the service-proxy we could see that some requests were made over service-proxy
for internal server like public.geo.admin.ch. This was due to the fact that if
for any reason the initial request failed (network failure) we fallback to the
service proxy. Now in that case we don't fallback anymore.

NOTE unfortunately there is no way for a web application to check for CORS support
see https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors
@ltshb ltshb merged commit 87535b9 into master Sep 11, 2024
6 checks passed
@ltshb ltshb deleted the bug-PB-977-proxy branch September 11, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants