A simple html form on a domain with an ssl certificate (https://www.example.com/form.html
) is defined like this:
<form method="post" action="https://www.example.com/processForm.php">
When I post the form I get a 403 error message
I have searched extensively for solutions. I found that:
.htaccess
method
attribute might be incorrectwww.
)I have checked each of the above and not fixed the problem.
What other reasons may exist for a 403 error?
Your target url may required a CSRF token to prevent Cross-Site Request Forgery. Read more at https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29