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 Premium Member Premium Member

    4,193
    1,014
    113
    May 25, 2014
    Ratings:
    +1,438
    Local Time:
    11:34 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

    34,569
    7,646
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,758
    Local Time:
    1:34 PM
    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 Premium Member Premium Member

    4,193
    1,014
    113
    May 25, 2014
    Ratings:
    +1,438
    Local Time:
    11:34 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.
     
  4. eva2000

    eva2000 Administrator Staff Member

    34,569
    7,646
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,758
    Local Time:
    1:34 PM
    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
..