[openstreetmap/openstreetmap-website] Switch to shortbread style with absolute URLs (PR #6595)

Pablo Brasero notifications at github.com
Mon Dec 8 15:57:39 UTC 2025


pablobm left a comment (openstreetmap/openstreetmap-website#6595)

I'm seeing the same as @tomhughes:

<img width="1371" height="616" alt="Firefox network inspector, showing a CORS error when trying to fetch https://vector.openstreetmap.org/styles/shortbread/colorful.json" src="https://github.com/user-attachments/assets/7c424753-b684-4982-8d5c-8008bf08cd85" />

Confusingly, sometimes the Firefox network inspector shows the error, and sometimes it doesn't, loads the data from cache, and pretends that all is ok, but the map still doesn't load (it's completely blank). All I see in the console is two CSP warnings that I think are unrelated.

My recollection of how CORS works is sketchy, but I can't see any `Access-Control-*` headers?

```
$ curl --silent -i https://vector.openstreetmap.org/styles/shortbread/colorful.json | head -n 50
HTTP/2 200
server: nginx
content-type: application/json
last-modified: Sun, 07 Dec 2025 22:15:43 GMT
etag: "6935fc8f-4a18d"
cache-control: public,max-age=300,stale-while-revalidate=3600,stale-if-error=86400
x-rendered-by: cmok.openstreetmap.org
accept-ranges: bytes
age: 196
date: Mon, 08 Dec 2025 15:55:52 GMT
via: 1.1 varnish
x-served-by: cache-lcy-eglc8600024-LCY
x-cache: HIT
x-cache-hits: 0
x-timer: S1765209353.940283,VS0,VE2
vary: Origin, Accept-Encoding
strict-transport-security: max-age=31557600
alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
content-length: 303501

{
  "version": 8,
  "name": "versatiles-colorful",
  ...
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6595#issuecomment-3627681226
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6595/c3627681226 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251208/31a55caf/attachment.htm>


More information about the rails-dev mailing list