Question

My Wordpress site is showing the IP address after the DNS was updated.

I updated the DNS and this is showing up:

Font from origin ‘http://45.55.210.167’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.jarofcomics.com’ is therefore not allowed access.

See the console in the browser and you see this error. It’s weird.

Made sure that the WP_SITEURL and WP_HOME was updated in the wp-config.php file and its still showing the IP Address.

Not sure why, is it something that needs to be change in the htcaccess? or a config in the sites-available directory in apache?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

simply put following line in your .htaccess file and change your application path http://url instead of www.url.

… RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.(.)$ [NC] RewriteRule ^(.)$ http://%1/$1 [R=301,L]

Hey there,

This error is referring to an included font that was hardcoded to your IP addresses. If you remove the IP address and place the relative path of the font, or use the domain name, the error should disappear.

It looks like you’ve already resolved it, but I wanted to update this question with this information.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean