nginx解决前端跨域配置

在nginx.conf文件中 添加如上配置:    在ajax中将原来的 url:http://192.168.1.127:8905/findItem 改成:'http://localhost/findItem'     listen :80;  #监听host为localhost:80 的客户端请求   server_name localhost;   # pathname 为 /findIte
相关文章
相关标签/搜索