Browse Source

feat: puyeng, for now set cors to all

YusufSyam 3 weeks ago
parent
commit
ac0af1ac11
1 changed files with 1 additions and 8 deletions
  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,