egg.js post跨域請求問題

使用Egg調用POST請求的時候,瀏覽器會觸發405報錯git 須要使用egg-cors插件 npm i egg-cors --save config.default.js config.security = { csrf: { enable: false, ignoreJSON: true, // 默認爲 false,當設置爲 tr
相關文章
相關標籤/搜索