Skip to content

Commit fe08ea0

Browse files
namedgraphclaude
andcommitted
Add CORS header to /static/ nginx location blocks
The cors-static.sh test was failing because Access-Control-Allow-Origin was only added to location / but not location ^~ /static/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ce8037c commit fe08ea0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ configs:
250250
proxy_pass http://linkeddatahub;
251251
limit_req zone=static_files burst=50 nodelay;
252252
253+
add_header Access-Control-Allow-Origin "*" always;
253254
add_header Cache-Control "public, max-age=604800, immutable";
254255
}
255256
}
@@ -295,6 +296,8 @@ configs:
295296
location ^~ /static/ {
296297
proxy_pass http://linkeddatahub;
297298
limit_req zone=static_files burst=50 nodelay;
299+
300+
add_header Access-Control-Allow-Origin "*" always;
298301
}
299302
}
300303

0 commit comments

Comments
 (0)