Join the community 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

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:15 PM
    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

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:15 PM
    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

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    latest when stable comes

    Why can't I see my CORS headers? – CloudFlare Support