mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Set Access-Control-Allow-Origin * on feeds
This enables client-side only web readers like Airss to work.
This commit is contained in:
parent
91022aa5da
commit
3700b3a9ac
@ -23,6 +23,7 @@ function respondWithFeed(feed, kind, maxAge, available) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const headers = {
|
const headers = {
|
||||||
|
"Access-Control-Allow-Origin": "*",
|
||||||
"Cache-Control": `public, max-age=${maxAge}`
|
"Cache-Control": `public, max-age=${maxAge}`
|
||||||
}
|
}
|
||||||
if (!available) headers["X-Bibliogram-Feed-Unavailable"] = 1
|
if (!available) headers["X-Bibliogram-Feed-Unavailable"] = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user