Skip to content

Commit 5bb6548

Browse files
committed
Forced CSS's to not return content type application/ld+json
1 parent d6ab227 commit 5bb6548

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
### Fixed
1717

18+
- Forced CSS's to not return content type application/ld+json, which induced a CORS error on some CSS server versions (#131).
19+
1820
## [1.2.1] - 2024-06-17
1921

2022
### Added

src/dataProvider/SparqlDataProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function statusFetch(customFetch, context) {
246246
try {
247247
const response = await customFetch(arg, {
248248
headers: {
249-
Accept: "application/n-quads,application/trig;q=0.95,application/ld+json;q=0.9,application/n-triples;q=0.8,*/*;q=0.1"
249+
Accept: "application/n-quads,application/trig;q=0.9,text/turtle;q=0.8,application/n-triples;q=0.7,*/*;q=0.1"
250250
}
251251
});
252252
context.fetchSuccess[arg] = response.ok;

0 commit comments

Comments
 (0)