When I was working on a project today, I found that the parameter for the ajax request action was null. The query obtained the URL forwarded through nginx. The proxy_set_header parameter transmission must be set. The following is the nginx setting:
ajax nginx request parameter:
location /xxxxxx{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header
The above introduces the nginx ajax transmission parameter is null, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn