Issue with Loading Resources (app.js and app.css) - 404 Error and CORB Blocking

Hello everyone,

I’m experiencing an issue with my website hosted on InfinityFree (domain: http://test-shop.infinityfreeapp.com).

Problem Description:

When I try to load the JavaScript (app.js) and CSS (app.css) files, I receive a 404 error. Additionally, I see the following messages in the “Issues” section of my browser console:

  • Response was blocked by CORB (Cross-Origin Read Blocking)
  • This page failed to load a stylesheet from a URL.

Here are the URLs I’m attempting to access:

  • http://test-shop.infinityfreeapp.com/static/js/app.js
  • http://test-shop.infinityfreeapp.com/static/css/app.css

Actions Taken:

  1. Verified that the files exist in the specified directories.
  2. Checked the developer console for any additional errors—none found except for the ones mentioned.
  3. Cleared my browser cache and tried accessing the page in incognito mode.
  4. Attempted to modify the file paths by adding a leading slash, but that didn’t resolve the issue.

Despite these efforts, the problem persists.

Questions:

  1. Why am I receiving a 404 error when trying to load these resources?
  2. How can I address the CORB blocking and the stylesheet loading issue?
  3. Are there any specific settings I should adjust to resolve these problems?

Thank you for your help!

/static/ folder does not exist

Did you? Because I checked your htdocs directory and there is no static folder there. There is also no .htaccess file that could make the server get those files from elsewhere.

Everything seems to be located in the public folder. That’s fine too, but then you’ll need .htaccess rules to make sure the servers gets the files from that folder.

The CORS error you get is from our 404 page. So if you fix the 404 error, the CORS error will disappear too.