Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Cross-Origin Resource Sharing error

  • This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #197515
    chauhanheena
    Participant

    Hi,
    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?

    #197516
    Shikkediel
    Participant

    This 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.

    Most relevant topic on Stackoverflow

    #197517
    chauhanheena
    Participant

    yeah 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-US

    Options All -Indexes

    ServerSignature Off
    Options +FollowSymLinks

    DirectoryIndex 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-javascript

    RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
    RewriteRule .* – [F,L]

    #197519
    Shikkediel
    Participant

    I 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…

    #197523
    Shikkediel
    Participant

    Site seems to be working fine on FF and IE on my setup…

    #197524
    chauhanheena
    Participant

    chrome?

    #197525
    Shikkediel
    Participant

    Chrome looks good and Opera as well.

    #197527
    chauhanheena
    Participant

    woooow….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?

    #197531
    Shikkediel
    Participant

    Indeed 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.

    #197552
    hackape
    Participant

    You’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.

    #197553
    chauhanheena
    Participant

    @hackape

    Thanks for the information. But can’t jus let it be that way.
    :(

    #197554
    hackape
    Participant

    @chauhanheena I’m creating a issue on github now.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘Other’ is closed to new topics and replies.