Post request is redirected to the login page

After new release means from 18th of july, a post request, which does not require authentication is redirected to the login page. Any idea how can i resolve this one. The application is developed in the PHP and integrated with the Okta with SAML.

The issue was caused because the PHP script was not terminated after the execution of the function. So it was forwarded to the Okta sign page and on post request it was throwing an error.