POST Request for Docker Compose File in GitHub Actions

I am running services from a docker compose file and trying to test it using github actions. I am able to make a GET request successfully, but I am not able to make a POST request, it redirects me to a wrong url.Also it first gives me a 307 status code before being redirected.

The post request is running totally fine in my local system. The response screenshot is as follows:

Why do you think it is related to Docker? As I see it, you have a service written in PHP and that PHP application redirects you so the post request doesn’t work. It seems to be a normal and expected behavior to me.

Do you know why the redirection happens in the PHP app? Is that somehow caused by running the service in a container?