Closed skygate2012 closed 7 months ago
I haven't used this. Here's the documentation.
Reading the docs, I guess that's not what I thought it was. I need to provide this flag --disable-web-security
to the EnvironmentOptions so that local html files can call APIs on the internet. Can you show me how?
WebView2.create(hwnd, , , , , { AdditionalBrowserArguments: '--disable-web-security' })
Thanks! That worked like a charm.
Can you add an example of using local file and bypassing CORS in the examples? I found this line but don't know where to supply it.
HOST_RESOURCE_ACCESS_KIND := { DENY: 0, ALLOW: 1, DENY_CORS: 2 }