我的nginx看起来像location @json401 { internal; "detail": "Please log in first before accessing this page."我知道nginx不能为非GET请求返回静态页面,但我正在尝试返回一个现在,当我向具有401响应的端点发出POST请求时,仍然不允许</
For uplink message: http://localhost:80/uplink-message使用ngrok.exe http 80,我还可以在命令行中看到接收post请求:
POST /uplink-enabled 502 Bad GatewayPOST /uplink-enabled 502 B
现在,我试图使用一个EC2 AWS实例来承载这个应用程序,但没有成功。当我试图将方法发布到访问公共DNS的服务器中时,我会从控制台浏览器收到一条消息:Access to XMLHttpRequest at 'http://18.228.222.138/uploadFile当我试图通过公共IPV4 (18.228.222.138)发帖时,我从控制台浏览器获得:405 (Not Allowed)。},
Ngi