Commit e88ad99
fix(app): drop crossOrigin on map thumbnails to avoid GCS CORS preflight
Setting img.crossOrigin='anonymous' in preloadImages forces a CORS
preflight, which fails because the anyplot-images GCS bucket has no
CORS headers configured. All 312 thumbnails were getting blocked
("No 'Access-Control-Allow-Origin' header is present").
We only drawImage() these onto the canvas — never call getImageData
or toDataURL — so a tainted canvas is fine. Drop the attribute and
the browser fetches the images as a regular cross-origin GET that
GCS happily serves.
Refs #5646
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 004b447 commit e88ad99
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
0 commit comments