Question

Cross Origin Resource issue - Wordpress

My wordpress droplet works great when using the ip address http://138.68.241.165/. But when accessing it from my domain name (ruepprich.com), the font-awesome icons do not show up because they are blocked by the CORS policy.

How can I change the CORS policy?

thanks!


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.

Andy Hattemer
DigitalOcean Employee
DigitalOcean Employee badge
June 21, 2018
Accepted Answer

If you view the source on your homepage ruepprich.com, you can see that all the URLs are using your IP Address, not your domain name: source of your homepage

First thing to do is change your Wordpress settings from using your IP Address to your domain.

  1. Login to Wordpress
  2. Go to Settings > General
  3. Change both to your domain name with the http part: e.g. http://ruepprich.com

HOPEFULLY that fixes your CORS issues… :)

Context: (from Wordpress) On the Settings->General screen in a single site installation of WordPress, there are two fields named “WordPress Address (URL)” and “Site Address (URL)”. They are important settings, since they control where WordPress thinks your site is located. They control the display of the URL in the admin section of your page, as well as the front end, and are used throughout the WordPress code.

  • The “Site Address (URL)” setting is the address you want people to type in their browser to reach your WordPress blog.
  • The “WordPress Address (URL)” setting is the address where your WordPress core files reside.

Note: Both settings should include the http:// part and should not have a slash “/” at the end.

aha, Thanks a bunch! That did the trick!

Christoph

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.