-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] CORS error when using www. subdomain, .css and .js files not loading #375
Comments
@ChadThackray, please ensure that in your |
@ChadThackray, @chipzoller, I think in your server configurations, you ought to configure 301 redirects from the apex domain (no-www) to www, or vice versa. At least it's the standard practice |
Thanks @onweru !
I tried this before and got the converse issue, then only
Oh ok, didn't know this was the standard procedure. Still strange that it worked for some other hugo themes but not for this one. Hopefully this issue will help anyone having the same problem in the future. |
Going to mark this as fixed given the last comment. |
I confirm:
Hugo version
hugo v0.102.0-DEV-7efb35680f4deb82773554be9eb3188d47e6ee0d+extended linux/amd64 BuildDate=2022-08-26T16:50:51Z
Where is this bug showing up?
In the browser: Hugo builds the site, but something doesn't look right.
Operating system
Linux Mint 20.3
Browser (if applicable)
Brave v1.43.89
Current behavior
CORS error when accessing the
www.domain.com
subdomain.The error also seems to prevalent on the demo site. If you access
www.neonmirrors.net
the .css and .js static content won't load. Images seem to be fine.Expected behavior
The static content should load without any additional configuration by the user in nginx, apache, etc.. I'm using the
m10c
theme for another website of mine and it loads the static content for both domains with no issues.Steps to reproduce
See the
www.
subdomain of the demo siteRelevant log output
No response
Related code
No response
Preferred solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: