I have noticed an issue with not displaying OJS correctly in Chrome Browser.
Checked page source in Chrome and get this message:
Font from origin [my domain name] has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin [my domain name] is therefore not allowed access.
Also thumbnails near “search” menu and in the top right corner of the admin page are not shown correctly. On firefox all works fine.
Apache is configured by a series of conf files which live outside of the web root. For example, in RHEL these usually start with /etc/httpd/conf/httpd.conf, which then references /etc/httpd/conf.d/*.conf, etc. Apache can be further configured with .htaccess files which live inside of the web root.
Either the main configuration files or the .htaccess overrides can be used to make a mod_rewrite rule such as this (provided .htaccess overrides are allowed by the main configuration files).
We have those issues with several installations that in some browsers icons are visible and in some not. I think that is needed to double check is it apache configuration. If apache does not allow something how some browsers can get icons while other browsers can’t. ?
I think that this issue deserves more detailed examination.
The same browser sees icons on one system and on the other server the same browser does not see icons. Thus, I have doubts that it is issue of browser. the same results with Firefox, Seamonkey and Chromium.
Please advise
When I addedd:
Header set Access-Control-Allow-Origin “*”
to .htaccess everything worked well.
It is important that be precise what is error message in console in inspect element.
I have had
CORS header ‘Access-Control-Allow-Origin’ missing
and fixed it with above mentioned statement.
It is fixed now.
And also this one can be helpful: <FilesMatch "\.(ttf|ttc|otf|eot|woff)$"> <IfModule mod_headers> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch>
Access-Control-Allow-Origin: * Gives a permissions for other domains to get all your content to their site. Embed your css, javascript etc.
Do you really understand the reason why icons are not displayed in case, which I described?
The browser simply thinks that www.mydomainname.com and mydomainname.com are 2 “separate” sites
I tried your solution but it did not work. Thus, I reduced to type of file that is related to webfonts only. I will investigate further, but the solution that reduce filetype to webfonts is relatively safe and and its working.
It is strange. My solution is aimed to tell the browser, that this 2 requests are pointing to the same site. In your solution you tell the browser that this 2 requests are really pointing to the different sites and it must deal with it.
If the first solutions is not working for you, maybe it will be better at least to change "*" to you domain name, where problem occurs?
i have problem on my OJS. My OJS doesn’t display glyphicons. When I checked at the postman console it turned out that I still had access to localhost, even though OJS had been uploaded to the subdomain. The following error message: