浏览代码

hotfix: Add local admin to ADMIN_CORS

olivermrbl 3 年之前
父节点
当前提交
796e17efef
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      medusa-config.js

+ 1 - 1
medusa-config.js

@@ -1,5 +1,5 @@
 // CORS when consuming Medusa from admin
-const ADMIN_CORS = process.env.ADMIN_CORS || "https://app.medusa-commerce.com";
+const ADMIN_CORS = process.env.ADMIN_CORS || "http://localhost:7000";
 
 // CORS to avoid issues when consuming Medusa from a client
 const STORE_CORS = process.env.STORE_CORS || "http://localhost:8000";