浩哥,网站设置https后,在后台发布的时候,提示:‘updating failed’,看啦下network,发现有个跨域问题,试啦在:define("FORCE_SSL_ADMIN", true)在wp-config.php文件和 Header set Access-Control-Allow-Origin *在.htaccess都不行。有没有遇到这个问题?
Access to fetch at 'http://www.*****.com/wp-json/wp/v2/media/5330?context=edit&_locale=user' from origin 'https://www.****.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.