mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
fix interactions, apparently cfw doesn't speak Buffer
This commit is contained in:
parent
7007cfea9d
commit
544ef1b2f0
5 changed files with 56 additions and 20 deletions
|
@ -17,7 +17,7 @@ export const corsHeaders = {
|
|||
'Access-Control-Max-Age': '86400',
|
||||
};
|
||||
|
||||
export const noContent = () => new Response(null, { status: 204 });
|
||||
export const noContent = () => new Response(null, { status: 204, headers: corsHeaders });
|
||||
export const seeOther = (url: string) =>
|
||||
new Response(
|
||||
`<!doctype html>If you are not redirected soon, <a href="${url}">click here.</a>`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue