You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
设置完接口后,用nei server 起 nodejs 本地接口服务,用 Chrome/Firefox 浏览器发送 PUT 请求,只有 OPTION 方法 没有发送 PUT 请求。console 报跨域的问题。建议直接在 apiResHeaders 下配置允许跨域的那几个标记
The text was updated successfully, but these errors were encountered:
my9074
changed the title
PUT 请求报跨域问题 'Method PUT is not allowed by Access-Control-Allow-Methods in preflight response.'
请求报跨域问题 'Method PUT is not allowed by Access-Control-Allow-Methods in preflight response.'
Feb 13, 2017
接口配置如图:
设置完接口后,用
nei server
起 nodejs 本地接口服务,用 Chrome/Firefox 浏览器发送 PUT 请求,只有 OPTION 方法 没有发送 PUT 请求。console 报跨域的问题。建议直接在 apiResHeaders 下配置允许跨域的那几个标记The text was updated successfully, but these errors were encountered: