Background of generation
Those who do front-end business probably know such a business scenario: initiate payment – jump to cashier – pay – complete payment and call back the front-end page address
I’m not paying the callback page address this time, but the logic is the same.
After docking with the face recognition system of XX Company, I called back the front-end page address and the page displayed 405! ?
why
So I copied the callback address and ran it in the browser but found that it was completely normal. According to my query result:
The Nginx server does not allow static files to respond to POST requests. Otherwise, an error “HTTP/1.1 405 Method not allowed” is returned.
And WHEN I checked the documentation it did say: for security reasons the page callback is POST!!
To solve
We just need to add the following configuration to Nginx.
error_page 405 =200 http://$host$request_uri;
Copy the code
Like this
To this, re-test the complete process, the result page jump normal!