Error migrating site WordPress

0

Good morning!

I was trying to migrate a site made with WP to another domain, but even after changing the url of the database it continues to point to the old url and has the following error loading the fonts

Access to Font at ' link ' from origin ' link ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' link ' is therefore not allowed access.

    
asked by anonymous 04.10.2018 / 14:00

1 answer

0

CORS uses HTTP headers to grant access to servers other than the domain's source. Like for example when you use your CSS files in CDN.

In your case access is being blocked. To solve this in a simple way, without putting your hand on the back end, you can follow two simple steps:

  • Download fonts again and place in the folder of your new site (you can find it in the old site's folder) .

  • Set the CSS to point to the new site's directory.

  • 04.10.2018 / 18:06