Error when migrating Wordpress site

Asked

Viewed 42 times

0

Good Morning!

Guys, I was trying to migrate a site made with WP to another domain, but even after changing the database URL it keeps pointing to the old URL and presents the following error while loading the sources

Access to Font at 'http://www.agenciagoup.com.br/projetos/sperone/wp-content/themes/sperone/fonts/GothamLight.woff' from origin 'http://sperone.com.br' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'http://sperone.com.br' is therefore not allowed access.

1 answer

0

CORS uses HTTP headers to ensure access to servers other than the source of the domain. For example when you use CSS CDN files.

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

  1. Download the fonts again and put them in your new website folder (you can find in the folder of the old site).

  2. Adjust the CSS so it points to the directory of the new site.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.