• Hi, I am using the Facebook Page Plugin on a couple of my websites and it’s working perfectly.

    The only thing that annoys me is that I always have a JS error showing in my console :
    XMLHttpRequest cannot load https://facebook.com/***/. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.***.com’ is therefore not allowed access.

    I tried modifying my sites headers by adding the “Access-Control-Allow-Origin: *” but it does not change anything, I still get the same error.

    Is there a way I could prevent this error?

    Thank you for the awesome plugin!

    • This topic was modified 7 years, 6 months ago by alexandrebc.
Viewing 1 replies (of 1 total)
  • Plugin Author Cameron Jones

    (@cameronjonesweb)

    Hi @alexandrebc,

    You won’t be able to modify the headers as the issue is a site origin policy issue when the plugin rerenders. It is something I am aware of, however at this stage it’s not a priority to fix, but I am looking to fix it sometime in the near future.

    Thanks,
    Cameron

Viewing 1 replies (of 1 total)
  • The topic ‘JS error : Access-Control-Allow-Origin’ is closed to new replies.