简体   繁体   中英

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:

错误

Just in case you ask, I already tried to send the request over HTTPS and always recive TypeError: Failed to fetch even if I tried with https in GraphQL playground

There is a way to enable http request to access the API?

Thanks

this is the solution for this problem:

Cors-Anywhere

this application allows me to create a server to parse http to https.

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM