eldang / ballard-4culture

A webmap of the history of the residents of Old Ballard, funded by the King County 4Culture grant program.
0 stars 0 forks source link

Hosting this site at eldang.xyz fails #10

Closed eldang closed 2 years ago

eldang commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Useful looking breadcrumbs that @coregis found:

Other people reporting similar errors: https://github.com/mapbox/mapbox-gl-js/issues/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