We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa6f70 commit 3ac3f32Copy full SHA for 3ac3f32
functions/__/vitepress-theme.tgz.ts
@@ -1,4 +1,14 @@
1
export async function onRequest(context) {
2
+ if (context.request.method === 'OPTIONS') {
3
+ // Send response to OPTIONS requests
4
+ return new Response(null, {
5
+ headers: {
6
+ 'Access-Control-Allow-Origin': '*',
7
+ 'Access-Control-Allow-Methods': 'GET, OPTIONS',
8
+ },
9
+ })
10
+ }
11
+
12
let response = await fetch(
13
'https://github.com/NativeScript/docs/releases/download/vitepress-theme/vitepress-theme.tgz'
14
)
0 commit comments