fix: add Authorization header to POST /api/feed request
This commit is contained in:
parent
d3d1980bfc
commit
dcb0274de7
|
|
@ -993,7 +993,7 @@ async function loadFeed() {
|
||||||
res = await fetch(FEED_API, {
|
res = await fetch(FEED_API, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
cache: 'no-store',
|
cache: 'no-store',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` },
|
||||||
body: JSON.stringify({ customFeeds }),
|
body: JSON.stringify({ customFeeds }),
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue