浏览代码

feat: puyeng, for now set cors to all

YusufSyam 3 周之前
父节点
当前提交
ac0af1ac11
共有 1 个文件被更改,包括 1 次插入8 次删除
  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,