国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

openIddict This server only accepts HTTPS requests (openIddict h

2022-12-17 15:40 作者:紫檀清香  | 我要投稿

生產(chǎn)環(huán)境部署abp api 項(xiàng)目,其中用戶登錄授權(quán)方面使用了openIddict 模塊

進(jìn)行登錄時(shí)使用發(fā)現(xiàn)獲取token的接口無法正常返回?cái)?shù)據(jù),接口返回有如下提示: This server only accepts HTTPS requests

大概的意思就是這個(gè)openIddict獲取token的請(qǐng)求必須時(shí)https的,但是奇怪的是我域名確實(shí)是https訪問的,只有nginx 配置反向代理時(shí)使用http。沒辦法只能去官網(wǎng)文檔找不找看了。

隨后我在Google上面找到了答案 https://github.com/openiddict/openiddict-core/issues/864?

解決方案:? https://github.com/openiddict/openiddict-core/issues/864#issuecomment-783432304

使用 `DisableTransportSecurityRequirement()`解除https限制

在.net core里面這樣配置

具體解析參考

?https://github.com/openiddict/openiddict-core/issues/864?

?https://github.com/openiddict/openiddict-core/issues/864#issuecomment-783432304


【openiddict】翻譯版本文檔]?https://www.aimzhi.cn/doc/openIddict


openIddict This server only accepts HTTPS requests (openIddict h的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
洛川县| 文化| 子洲县| 霍林郭勒市| 垦利县| 庄浪县| 霍州市| 杭锦旗| 故城县| 英超| 鹤壁市| 余庆县| 化州市| 谢通门县| 射洪县| 临沂市| 隆安县| 大姚县| 黔西县| 宜丰县| 松溪县| 天津市| 雷山县| 罗源县| 新巴尔虎右旗| 密云县| 武穴市| 贺州市| 雅江县| 日照市| 怀宁县| 呈贡县| 舒兰市| 辰溪县| 南靖县| 盈江县| 梨树县| 禹城市| 任丘市| 茶陵县| 东乌珠穆沁旗|