解决aliyun阿里云虚拟主机wordpress启用CDN加速后,报Access-Control-Allow-Origin错误

  1. Betheme主题,安装在虚拟主机上,启用CDN后报:blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
  2. 解决办法:CDN配置项中, 缓存配置-> HTTP头 ,添加 参数:Access-Control-Allow-Origin ,值:*