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

Hosting this site at eldang.xyz fails #10

Closed
eldang opened this issue Dec 6, 2021 · 2 comments · Fixed by #14
Closed

Hosting this site at eldang.xyz fails #10

eldang opened this issue Dec 6, 2021 · 2 comments · Fixed by #14
Labels
bug Something isn't working

Comments

@eldang
Copy link
Owner

eldang commented Dec 6, 2021

When I try uploading files for this site to my own server, I get a set of referer policy related error messages. I don't yet know if this is due to a weird config on my server, or something about how the site is built not working with subdirectories.

https://eldang.xyz/ballard_historical_society/ is the broken version

https://eldang.github.io/ballard-4culture/ is currently working, which has me suspicious that it's config on my server. But this is worth investigating so that we can be confident the site will ultimately work when moved to BHS's server.

@eldang
Copy link
Owner Author

eldang commented Dec 6, 2021

Sample error messages:

Referrer Policy: Less restricted policies, including ‘no-referrer-when-downgrade’, ‘origin-when-cross-origin’ and ‘unsafe-url’, will be ignored soon for the cross-site request: https://api.tiles.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js mapbox-gl.js

Referrer Policy: Less restricted policies, including ‘no-referrer-when-downgrade’, ‘origin-when-cross-origin’ and ‘unsafe-url’, will be ignored soon for the cross-site request: https://api.tiles.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css mapbox-gl.css

Referrer Policy: Less restricted policies, including ‘no-referrer-when-downgrade’, ‘origin-when-cross-origin’ and ‘unsafe-url’, will be ignored soon for the cross-site request: https://api.mapbox.com/styles/v1/core-gis/ckqihj7aj2f1y18nvyhumtlwm?access_token=pk.eyJ1IjoiY29yZS1naXMiLCJhIjoiaUxqQS1zQSJ9.mDT5nb8l_dWIHzbnOTebcQ ajax.js:143:15

Content Security Policy: The page’s settings blocked the loading of a resource at blob:https://eldang.xyz/951345f9-ad5c-f449-920f-56dce4a07e3b (“default-src”).

@eldang eldang added the bug Something isn't working label Dec 6, 2021
@eldang
Copy link
Owner Author

eldang commented Dec 11, 2021

Useful looking breadcrumbs that @coregis found:

Other people reporting similar errors: mapbox/mapbox-gl-js#4062

CSP directives that aren't currently set, don't seem to be needed for Github Pages hosting, but might be for hosting elsewhere: https://docs.mapbox.com/mapbox-gl-js/guides/browsers-and-testing/#csp-directives

@eldang eldang mentioned this issue Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant