当前位置:网站首页>405 method not allowed appears when the third party jumps to the website

405 method not allowed appears when the third party jumps to the website

2022-07-07 01:17:00 yunchong_ zhao

Status code 405 Method Not Allowed Indicates that the server is not allowed to use the current HTTP Method request . It should be noted that ,GET And HEAD Two methods must not be forbidden , Of course, the status code must not be returned 405.

I use this method
One . Redirect 405 Error code to 200: stay nginx server{} Add the following ,root Is the root directory of the site
error_page 405 =200 $uri
Make a mistake code Compulsory from 405 To adjust to 200 Success status , Can
 Insert picture description here

The introduction is very detailed
https://jingyan.baidu.com/article/86f4a73e2a36e377d752697a.html

Pay attention to me Continuously update front-end knowledge . This is also a small pit

If it hasn't been solved yet . Try to check Whether the port number has been changed After all, this will also affect

原网站

版权声明
本文为[yunchong_ zhao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207061729348677.html