Join the community today
Become a Member

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

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

  1. RoldanLT

    RoldanLT Well-Known Member

    3,831
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    2:56 PM
    1.11
    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

    29,053
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    4:56 PM
    Nginx 1.13.x
    MariaDB 5.5
    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. RoldanLT

    RoldanLT Well-Known Member

    3,831
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    2:56 PM
    1.11
    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

    29,053
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    4:56 PM
    Nginx 1.13.x
    MariaDB 5.5
    latest when stable comes

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