misc: switch to csr
This commit is contained in:
1 parent
8721e61554
commit
eb1d90478e
6 files changed
+20
-25
No files matched your search
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user