Cross-Origin Read Blocking in form post request

There is an error regarding to my log in’s post request:

Cross-Origin Read Blocking (CORB) blocked cross-origin response with MIME type text/html. See Chrome Platform Status for more details.

and continue on a blank page. In my localhost server, this doesn’t have the problem.
Is it regarding to my post request? I’m using PHP as a back end on my post request

It looks where you post doesn’t exist.

1 Like

What do you mean by it doesn’t exist?

I have a log in form on /login.php but if you click the submit button it redirects back to /login.php and that error occurs

Also on the /signup.php this error also will occur if you submit the form. If I clear the cookies it only redirects back to where you signup or login

This is my website

You need to set what should be allowed via an .htaccess file. Look up CORS .htaccess .

I cannot see the error that you see, that’s probably trying to load a thing that doesn’t exist (and returns )

About why login page doesn’t work, You might enable error display with something like $stmt->error() or etc to see why that doesn’t work.


The question to ask here is not “how can I make my browser load this URL”, but “how can I make my browser not TRY to load this URL”. Because that URL is the default URL you’re redirected to if the requested page cannot be found. So if you see that URL in your browser’s log, that typically means you have a broken URL in your website.


I fixed it. Somewhat the error didn’t occur but instead of that error there is a server side error.

Warning : include_once(): open_basedir restriction in effect. File(…/database/connect.php) is not within the allowed path(s): (/php_sessions:/tmp:/var/www/errors:/usr/share/pear:/home/vol9_1/ in /home/vol9_1/ on line *8

The problem is free hosting can’t accept input on include or require like this ../directory so I move my php file with that code inside the htdocs

Relative paths for requires and includes should just work. As long as the path you’re including is within the paths PHP is allowed to access, at least.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.