Kaynağa Gözat

chores: update cors & csrf

YusufSyam 2 hafta önce
ebeveyn
işleme
bf8d2af4e0
1 değiştirilmiş dosya ile 9 ekleme ve 3 silme
  1. 9 3
      src/payload.config.ts

+ 9 - 3
src/payload.config.ts

@@ -35,11 +35,17 @@ export default buildConfig({
     },
   }),
   sharp,
-  cors: ['http://localhost:3000'],
-  csrf: ['http://localhost:3000'],
+  cors: [
+    'http://localhost:3000',
+    'https://hanoman-website-mirror.vercel.app/',
+  ],
+  csrf: [
+    'http://localhost:3000',
+    'https://hanoman-website-mirror.vercel.app/',
+  ],
   plugins: [
     vercelBlobStorage({
-      enabled: process.env.NODE_ENV === 'test',
+      enabled: true,
       collections: {
         media: true, // Aktifkan untuk collection 'media'
       },