misc: switch to csr

This commit is contained in:
Xyphyn committed 2023-07-30 11:55:04 -07:00
1 parent 8721e61554
commit eb1d90478e
6 files changed
+20 -25

No files matched your search

+9
View File
@@ -35,6 +35,15 @@ export async function handle({ event, resolve }) {
url.searchParams.get('auth')
) {
headers.set('cookie', `jwt=${url.searchParams.get('auth')}`)
} else {
return new Response(
JSON.stringify({
message: 'Only CORS allowed is through /pictrs/image',
}),
{
status: 500,
}
)
}
const data = await fetch(url, {