Quellcode durchsuchen

feat: puyeng, for now set cors to all

YusufSyam vor 2 Wochen
Ursprung
Commit
ac0af1ac11
1 geänderte Dateien mit 1 neuen und 8 gelöschten Zeilen
  1. 1 8
      src/payload.config.ts

+ 1 - 8
src/payload.config.ts

@@ -35,14 +35,7 @@ export default buildConfig({
     },
   }),
   sharp,
-  cors: [
-    'http://localhost:3000',
-    'https://hanoman-website-mirror.vercel.app/',
-  ],
-  csrf: [
-    'http://localhost:3000',
-    'https://hanoman-website-mirror.vercel.app/',
-  ],
+  cors: '*',
   plugins: [
     vercelBlobStorage({
       enabled: true,