我有一个主网站forexample.com,然后我有第二个网站,forinstance.com。符号链接和跨来源资源共享
两者都使用相同的Magento系统,但forinstance.com使用符号链接指向的所有文件forexample.com。这是使用Magento的多站点。
对于forinstance.com,我想字体到字体文件夹(我认为是共享的),并链接到它。不幸的是,对于Magento,似乎如果你想链接到Magento中的某些东西,你必须链接到主站点,而不是你想要使用的站点。如果我想使用forinstance.com的images文件夹,我必须链接http://forexample.com/images而不是(我必须让它设置错误)。否则,如果我使用http://forinstance.com
链接到图像文件夹,我会得到404如果我通过CSS链接到forexample.com就好了。然而,随着字体,我尝试链接到http://forexample.com/fonts/font.ttf和我得到这个错误:
Redirect at origin ' http://forexample.com ' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://forinstance.com ' is therefore not allowed access.
我可以理解,因为它的不一样的网址,浏览器就不会要你从其他网站窃取,但他们使用相同的CMS。我能做什么?