我得到了以下错误 crossorigin.me/:1 Failed to load resource: the server responded with a status of 522 ()
AJAXcalls with FETCH and PROMISES.html:1 Access to fetch at 'https://crossorigin.me/https://www.metaweather.com/api/location</e
我试图转发一个GET请求,所以当用户向服务器发出POST请求时,服务器会向其他URL发出另一个GET请求并返回结果。问题是,当我使用puts打印结果时,我看到了我期望的正确结果,但是最后一行(我相信函数的最后一行会自动返回)不会响应POST请求(它返回空响应)。0.0.0.0'
post "/weather" d