Discover Centmin Mod today
Register Now

Xenforo No 'Access-Control-Allow-Origin' header is present on the requested resource

Discussion in 'Forum software usage' started by rdan, Aug 10, 2015.

  1. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    4:39 AM
    Mainline
    10.2
    I'm using Cloudflare CDN for static content, now I have some issue with XMG Video icons.
    Live demo here.

    I got this error on Browser Console.
    On my Nginx config, I even have this:
    Code:
    location ~* \.(eot|svg|ttf|woff|woff2)$ {
        add_header 'Access-Control-Allow-Origin' '*';
        add_header Cache-Control "public, must-revalidate, proxy-revalidate";
        access_log off;
        expires 30d;
        break;
            }
    XenForo thread: No 'Access-Control-Allow-Origin' header is present on the requested resource | XenForo Community
     
  2. eva2000

    eva2000 Administrator Staff Member

    40,644
    9,028
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,900
    Local Time:
    6:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Header probably needs to be added at Cloudflare level. I know KeyCDN does it at their level so you can edit the CORS policy for KeyCDN served files.

    Does CloudFlare support Cross-origin resource sharing (CORS)? – CloudFlare Support

     
  3. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    4:39 AM
    Mainline
    10.2
    I hope you will upgrade your XMG addon here also, the latest RC1 with video upload so that we can test if keycdn support it.
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,644
    9,028
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,900
    Local Time:
    6:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    latest when stable comes

    Why can't I see my CORS headers? – CloudFlare Support
     
    • Informative Informative x 1