我们有我们的网站www.example.com,还有blog.example.com 我们正在使用反向代理将bitnami wordpress用作www.example.com/blog中的文件夹
加载wordpress后,我们会从bitnami服务器上收到CORS问题
我已经根据您的文档配置了CORS,但仍然没有运气,
这是错误-
Access to font at 'https://blog.example.com/wp-
content/themes/example/dist/fonts/value-bold_d4b2c7b6.ttf'
(redirected from 'https://www.example.com/wp-
content/themes/example/dist/fonts/value-bold_d4b2c7b6.ttf') from
origin 'https://www.example.com' has been blocked by CORS policy: No
'Access-Control-Allow-Origin' header is present on the requested
resource.
这是我的配置-
/opt/bitnami/apps/wordpress/conf/htaccess.conf
(tried to add the exact directory, and also main directory)
(Main Directory)
Header set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Origin "*"
(The directory of the asset - /wp-content/themes/example/dist/fonts)
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS,
DELETE, PUT"
/opt/bitnami/apps/wordpress/conf/httpd-app.conf (under /htdocs
directory and also tried under the specific directory)-
Header always set Access-Control-Allow-Origin "*"
我已经仔细阅读了他们的所有文档,并尝试将这些标头添加到每个可能相关的文件中,我在这里错过了什么?