unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.46k stars 176 forks source link

SSL Error connecting to local Web Server #494

Closed mmajors75 closed 3 years ago

mmajors75 commented 3 years ago

Describe the bug I am using EmbedIO in my Xamarin.Forms Project. I created a certificate in Keychain and I am using that when constructing the web server. As an example:

using (var server = new WebServer(HttpListenerMode.EmbedIO, certificate, GetLocalIpAddress()))

GetLocalIPAddress() returns https://localhost:8080 on iOS.

I am allowing ArbitraryLoads in my pList.

When our React Website is attempting to call my API, we are receiving this error: An SSL error has occurred and a secure connection to the server cannot be made.

To Reproduce Steps to reproduce the behavior:

  1. Xamarin Forms Project
  2. Create a new EmbedIO WebServer instance
  3. From a website, call an API
  4. See error

Expected behavior Ability to call my local web server from a Web Page over https

Smartphone (please complete the following information):

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.