iOS testing in local network

Why else should it work on e.g. glitch

by user 395602247196737546

Yes there is

There is a ssl plugin for vite

You need to do it via the terminal tho

Oh you mean for windows

Try installing the vite ssl plugin and accepting the dialogue on windows

Yep, server on windows. But ideally Iā€™d install the cert to all local network devices to avoid the browsersā€™ nagging warning (and maybe fix the crashes on iOS).

by user 395602247196737546

Viaā€¦ npm I guess? Sorry, new to this whole realm :slightly_smiling_face:

by user 395602247196737546

Yes

Youll find instructions on the plugin page

Huh, isnā€™t that installed by your default config already?

Your vite.config.json reads:

import basicSsl from '@vitejs/plugin-basic-ssl'
[...]
plugins: [
            basicSsl(),

by user 395602247196737546

Sorry meant this https://www.npmjs.com/package/vite-plugin-mkcert

Yep thanks! This now successfully installed the self-signed root certificate inside Windowsā€™ certificate store.
But even on this same PC this does not seem to work :slightly_smiling_face: Browsers are still showing me the warning.

by user 395602247196737546

The npmjs site has some info about how to install the generated cert on mobile devices. I will try this next (tomorrow) ā€“ even though Iā€™m pretty sceptical as it does not even work on my PC as of now.

by user 395602247196737546

May I ask how you internally deal with the https warning on local network? Do you have trusted cert?

by user 395602247196737546

For most projects weā€™re simply using it as-is, same as you - accepting the warning. After all, it literally just says ā€œthis is an encrypted connection but the senderā€™s cert is not in the Root CAā€ - which is a) true and b) already way better and way more secure than plain http.

Itā€™s weird (and a big issue) that it doesnā€™t work for you at all on iOS though - thatā€™s concerning

Hi again, wanted to report the problem with mkcert not working correctly was just because I did not delete the basicSsl() call from viteā€™s config. The warning is gone now on my Windows machine and iOS.

by user 395602247196737546

Butā€¦ I still cannot get the simplest scene to load on my iphone. At least we can rule ssl out for now :wink:

by user 395602247196737546

I wonder have you guys ever tested the local vite deployment with iOS?
Unfortunately the only other iOS device at my disposal is an IPad mini 2 which only shows a black screen, not even the loading bar. I guess this is to be expected of a ~10 year old device though.

by user 395602247196737546

I can try to reproduce it the next few days