- This topic is empty.
-
AuthorPosts
-
March 7, 2015 at 4:04 am #197515
chauhanheena
ParticipantHi,
working on a website “www.cubegrfx.com” and the icons from http://code.ionicframework.com dont show up on chrome, IE, opera and firefox. Strangely they work fine on safari.
the console gives the following error.Font from origin ‘http://code.ionicframework.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: The ‘Access-Control-Allow-Origin’ header contains multiple values ‘*, *’, but only one is allowed. Origin ‘http://www.cubegrfx.com’ is therefore not allowed access.
Can anyone here help me with a solution.
@shikkediel – any solution u know of?March 7, 2015 at 4:30 am #197516Shikkediel
ParticipantThis sort of thing I only know a bit about so I’ll give @__ a shout…
But I’m not completely unfamiliar – is there a htaccess file on the server for this? From the message I would think so. If you could share that code it would be helpful. Also, did it work before somehow?Lol, I think he found a way to not be hollered at.
March 7, 2015 at 4:34 am #197517chauhanheena
Participantyeah it worked until this yesterday but today its throwing errors. the htaccess goes like this
<Files .htaccess>
deny from all
</Files>AddDefaultCharset UTF-8
DefaultLanguage en-USOptions All -Indexes
ServerSignature Off
Options +FollowSymLinksDirectoryIndex index.html
<IfModule mod_rewrite.c>
RewriteEngine On
ErrorDocument 404 /404.html
</IfModule>RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.cubegrfx.com$ [NC]
RewriteRule ^(.*)$ http://www.cubegrfx.com/$1 [L,R=301]#remove files extentions
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.html [NC,L]AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascriptRewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]March 7, 2015 at 4:43 am #197519Shikkediel
ParticipantI think you can remove that (while still possible) as I don’t see anything relevant to allow cross domain origin. That would mean some basic allowance should be added which is odd because the message implicates the header is set – and it worked until recently. It must be in another file (php maybe?).
I’ll look into it a bit more but it’s not too much my cup of tea…
March 7, 2015 at 5:06 am #197523Shikkediel
ParticipantSite seems to be working fine on FF and IE on my setup…
March 7, 2015 at 5:07 am #197524chauhanheena
Participantchrome?
March 7, 2015 at 5:09 am #197525Shikkediel
ParticipantChrome looks good and Opera as well.
March 7, 2015 at 5:21 am #197527chauhanheena
Participantwoooow….nothing works here on my system and checkedon another system too n fails. confused. do you see four arrow marks on the website on top center, bottom center, left center and right center?
March 7, 2015 at 6:29 am #197531Shikkediel
ParticipantIndeed I do, I’m running NoScript on Firefox and can explicitly allow the fonts domain there. Works automatically on all other browsers. Not a clue what could be different from your situation to be honest.
March 7, 2015 at 8:36 am #197552hackape
ParticipantYou’re not alone, I got this problem too. I guess it’s some folk on the ionic team press some funny button, not our fault.
March 7, 2015 at 8:39 am #197553chauhanheena
ParticipantThanks for the information. But can’t jus let it be that way.
:(March 7, 2015 at 8:41 am #197554hackape
Participant@chauhanheena I’m creating a issue on github now.
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.