[DigitalOcean] hostname having "www" in A records showing blank page

I believe your DNS is set up correctly.

If you go to www.hardwaremana.community and open the console, there are errors about Content Security Policy (CSP):

Refused to load the script 'http://www.hardwaremana.community/...' because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'report-sample' http://hardwaremana.community/... ...".

Note that only the non-www host is whitelisted, because:

Discourse automatically sets your CSP based on this value. So I recommend picking one (www vs non-www) and setting up a redirect for the other.

3 Likes