diff options
| author | Fuwn <[email protected]> | 2024-01-06 17:06:50 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-06 17:06:50 -0800 |
| commit | 0f71c2f3630fb9135f21714d2867b8231c29d9ea (patch) | |
| tree | 27105aefa30518fe785dc1d7dd67896ee9aa533e /src/routes/api/updates/manga | |
| parent | refactor(api): move animeschedule oauth (diff) | |
| download | due.moe-0f71c2f3630fb9135f21714d2867b8231c29d9ea.tar.xz due.moe-0f71c2f3630fb9135f21714d2867b8231c29d9ea.zip | |
feat(api): cors
Diffstat (limited to 'src/routes/api/updates/manga')
| -rw-r--r-- | src/routes/api/updates/manga/+server.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/routes/api/updates/manga/+server.ts b/src/routes/api/updates/manga/+server.ts index 747f566b..dcc0df5c 100644 --- a/src/routes/api/updates/manga/+server.ts +++ b/src/routes/api/updates/manga/+server.ts @@ -8,6 +8,11 @@ export const GET = async ({ setHeaders }) => { return Response.json( await new Parser().parseString( await (await fetch('https://www.mangaupdates.com/rss.php')).text() - ) + ), + { + headers: { + 'Access-Control-Allow-Origin': 'https://due.moe' + } + } ); }; |