Is there a way to allow http urls in rust http outcall for local development?
I’m trying to connect to a server running locally while developing rust canister locally. I got the following error while connecting to local server
[Canister bkyz2-fmaaa-aaaaa-qaaaq-cai] Url need to specify https scheme
you can create https proxy for your http server.
Maybe this will work https://github.com/cameronhunter/local-ssl-proxy
I tried using self-signed certificate with proxy but got the following error
Failed to connect: error trying to connect: The certificate was not trusted.
Actually this was because I didn’t restart dfx after I ran the proxy. Restarting everything fixed the issue.
I used mkcert for self signed certificate and using proxy worked
Thank you @infu