-
JP DUVAL
Access to font at ‘https://antibes.vet/wp-content/uploads/generatepress/fonts/be-vietnam-pro/QdVMSTAyLFyeg_IDWvOJmVES_HToIW81Rb0.woff2’ from origin ‘https://www.antibes.vet’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Hello. I have this error message in chrome. Is there any way to fix it ?
Thank you -
Hi there,
Try this:
Go to Settings > General in the WordPress admin.
Ensure both WordPress Address (URL) and Site Address (URL) use either https://antibes.vet or https://www.antibes.vet, but not both.
Let me know if this helps!
-
JP DUVAL
Hi Ying,
thank you. Both are https://antibes.vet
JP -
Does this only happen when you access the site from https://www.antibes.vet/?
The browser treats https://www.antibes.vet/ and https://antibes.vet/ as different origins, causing the cross-origin request to fail.
I would suggest you re-direct https://www.antibes.vet/ to https://antibes.vet/, can you ask your host to take care of this?
-
JP DUVAL
Hello Ying,
You’re absolutely right. What is strange is : when I tipe antibes.vet in Chrome, I’m connected on http://www.antibes.vet.
But When I copy paste https://antibes.vet in the navigatoir, everything works perfectly.Redirection is already done. So. I don’t know what to do.
http://www.antibes.vet vers un domain (CNAME) antibes.vet
-
When I click https://www.antibes.vet, it does not redirect to https://antibes.vet currently.
I’m not very familiar with the server/domain stuff, but as far as I know, a CNAME record cannot perform a proper redirect. Instead, it’s used to alias one domain to another at the DNS level, not for redirection.
I’ve set up redirect for my domains via my domain supplier which is godady.com, you can check with your host or your domain supplier for this.
And the goal here is to redirect https://www.antibes.vet/ to https://antibes.vet/ 🙂
-
JP DUVAL
OK. I will see what I can do.
Thank you -
You are welcome 🙂
- You must be logged in to reply to this topic.