Closed LukaszSadoch closed 3 years ago
Suggestion of changes:
to file ios/Classes/SwiftR.swift:231 add:
config.setValue(true, forKey: "allowUniversalAccessFromFileURLs")
Thanks for the suggestion, added this. Should be available in the next pre release.
In webview I'a getting error:
Origin null is not allowed by Access-Control-Allow-Origin
My flutter app connects to server with CORS mechanism, so null is not acceptable. Adding an 'Origin' header to SignalR configuration doesn't help either.
I don't know how to change Origin to any value, but after adding allowUniversalAccessFromFileURLs to WKWebView it will be "file: //" which in my opinion is a better solution