簡體   English   中英

Blazor WASM - 如何通過 http 啟用請求

[英]Blazor WASM - How to enable request over http

I'm working on a Blazor WASM app to connect a GraphQL API but is over HTTP (I have no control/ownership over the API) this is the error when I send the request:

錯誤

以防萬一你問,我已經嘗試通過 HTTPS 發送請求並且總是收到TypeError: Failed to fetch即使我在 Z524DE3D2ADE4544176F60702B36FFFDFZ 操場上嘗試使用 https

有一種方法可以啟用 http 請求以訪問 API?

謝謝

這是這個問題的解決方案:

Cors-無處不在

這個應用程序允許我創建一個服務器來將 http 解析為 https。

謝謝

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM