I am loading a URL
in WKWebview
in which I am passing "Accept-Language
" header for displaying page as per passed language.
var aRequest = URLRequest.init(url: MyUrl)
aRequest.setValue("fr-CA", forHTTPHeaderField: "Accept-Language")
self.webView.load(aRequest)
The above works properly in case of one of the URL and doesn't work in case of other. How to correctly use the header of Accept-Language?