第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

http://localhost:8000/user請求成http://localhost:8000/server/user

http://localhost:8000/user請求成http://localhost:8000/server/user

DIEA 2019-05-13 10:42:34
proxyTable:{'/server':{target:'http://localhost:8000/',//接口的域??//secure:false,//如果是https接口,需要配置這個參??changeOrigin:true,//如果接口跨域,需要進行這個參數(shù)配??//pathRewrite:{//'^/api':''//}}'/user':{target:'http://localhost:8000/user/register',//接口的域??secure:true,//如果是https接口,需要配置這個參??changeOrigin:true,//如果接口跨域,需要進行這個參數(shù)配??//pathRewrite:{//'^/api':''//}},}
查看完整描述

2 回答

?
繁華開滿天機

TA貢獻1816條經(jīng)驗 獲得超4個贊

localhost:800還是localhost:8000呢?還有我不太理解為什么把第二個的secure設(shè)為true,從代碼上來看,你只是鏈接到了http的接口呀
                            
查看完整回答
反對 回復(fù) 2019-05-13
?
炎炎設(shè)計

TA貢獻1808條經(jīng)驗 獲得超4個贊

后端接口地址是/server/user/register,前端請求的時候url地址寫/server/user/register,
'/server':{
target:'http://localhost:8000',//后端服務(wù)地址,注意端口號后面沒有/
changeOrigin:true
}
                            
查看完整回答
反對 回復(fù) 2019-05-13
  • 2 回答
  • 0 關(guān)注
  • 2932 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號