How can I ensure that a https post is from a given domain? Consider the following setup:
A webpage on the frontend server, for example https://www.frontend.com/index.php sends a https
post redirect to a webpage on a backend server, for example https://www.backend.com/index.php
Now the backend wants to verify that the post is really from https://www.frontend.com/index.php .
(If the post is not from the frontend server, it should be rejected showing an error message.)
How can this be done in php
? (as seen from the URLs above I am using SSL)