strapi配置跨域访问

strapi配置跨域访问需要在config/enviroment/**/security里的cors对象做如下基本配置:

"cors":{
  "enabled": true,
  "origin": "http://your_domain_origin"
}

发表评论

邮箱地址不会被公开。 必填项已用*标注