Page 1 of 1
Additional WebGadget Flags
Posted: Sat Mar 16, 2024 11:22 am
by wayne-c
Please add the following flags to the
WebGadget:
Code: Select all
#PB_HTTP_NoSSLCheck
#PB_HTTP_WeakSSL
Without these it is
not possible to connect to
self-signed certificates for testing purposes!
Re: Additional WebGadget Flags
Posted: Tue Mar 26, 2024 7:50 pm
by wayne-c
This does the trick:
Code: Select all
SetEnvironmentVariable("WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS", "--allow-insecure-localhost --ignore-certificate-errors")
OpenWindow(0, 0, 0, 800, 600, "Edge insecure localhost", #PB_Window_SystemMenu | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget | #PB_Window_SizeGadget | #PB_Window_ScreenCentered)
WebGadget(0, 0, 0, 800, 600, "https://localhost/", #PB_Web_Edge)
Repeat
e = WaitWindowEvent()
Until e = #PB_Event_CloseWindow
Credits to
https://www.purebasic.fr/english/viewto ... 50#p618050
and reference
https://learn.microsoft.com/en-us/micro ... tnetcsharp