1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Troubleshooting and Problems' started by RoldanLT, Aug 9, 2015.

  1. RoldanLT

    RoldanLT Well-Known Member

    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;
            }
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Seems to be working ok in Firefox.

    When I load your site in Chrome I get a redirect loop.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    By the way, strictly speaking not really a Gallery issue, itself.

    The Video JS system, its fonts and styling is part of XF 1.5.
     
  4. RoldanLT

    RoldanLT Well-Known Member

    Maybe you visited my site before when I was on HTTPS.
    But redirect loop should not be encountered.
    :unsure:
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    I probably did, in Chrome. Not in Canary, though, and I get the redirect loop there, too.

    Also I have cleared all caches from Canary, including steps which should clear any cached redirects and it still does it.

    Is the problem you describe in the first post only evident in Chrome? As I say, it seems perfectly fine in Firefox and Safari.
     
  6. RoldanLT

    RoldanLT Well-Known Member

    That's weird :/.
    Directly accessing this media, should not redirect on a browser without any cache stored.

    My problem also happens on every browser.
    I mean the video player icon not showing, even if I have the correct header (I think).
     
  7. RoldanLT

    RoldanLT Well-Known Member

    I'm on Ubuntu 15.04 with Chromium, Firefox, Google Chrome browsers.
    Video player icon only works on Google Chrome for me :(.
     
  8. Chris D

    Chris D XenForo Developer Staff Member

    Ultimately this is some sort of server configuration issue. There's not a lot that can be done from our point of view as it is your server configuration that is blocking this, apparently in different ways for different clients.
     
  9. RoldanLT

    RoldanLT Well-Known Member

    @Chris D can you please revisit the link on the 1st post? :(
    I think the issue is my site included on Preload List on Chrome :(
    I have open up HTTPS now, I hope it will not redirect loop again.
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    It no longer redirects for me.

    Everything loads fine in all browsers, for me.
     
  11. rafass

    rafass Well-Known Member

    Working perfect in all my browsers.
    And very fast btw.
     
  12. RoldanLT

    RoldanLT Well-Known Member

    Thanks for the confirmation Chris.
    I asume you tried on Chrome Canary?
    Cause the previous redirect loop problem only happens on Canary version.
    Thanks again.

    Thanks rafass :)
    Did you redirect to HTTP or HTTPS of my forum?
    It will not be faster also for US visitor's becuase my Firewall server is on Tokyo.
     
  13. Chris D

    Chris D XenForo Developer Staff Member

    Yep fine in Canary.
     
    RoldanLT likes this.
  14. rafass

    rafass Well-Known Member

    http
     
    RoldanLT likes this.

Share This Page