Przeglądaj źródła

feat: puyeng, for now set cors to all

YusufSyam 3 tygodni temu
rodzic
commit
ac0af1ac11
1 zmienionych plików z 1 dodań i 8 usunięć
  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,