WebView.AllowsAnyHTTPSCertificateForHost
----------------------------------------

Allows a certain host to allow use of any HTTP certificates.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebView](component_WebView.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "WebView.AllowsAnyHTTPSCertificateForHost"; HostName ) 

**MBS**( **"WebView.AllowsAnyHTTPSCertificateForHost";** /\* Allows a certain host to allow use of any HTTP certificates. \*/  
**$HostName**) /\* The hostname to allow.e.g. "www.macsw.de" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| HostName | The hostname to allow. | "www.macsw.de" |

### Result

Returns OK or error.

### Description

Allows a certain host to allow use of any HTTP certificates.  
Sometimes you have to load a website where the SSL Zertifikate ist not for the given domain.  
With putting a domain on the exception list, we can allow loading the given site.  
  
Supported for WebKit 2.x (FileMaker 16 Mac) with MBS Plugin 9.3 or newer.  
### Examples

Allow some domains and load website:

 Set Variable \[$r ; Value:MBS ("Webview.AllowsAnyHTTPSCertificateForHost"; "macsw.de")\]  
Set Variable \[$r ; Value:MBS ("Webview.AllowsAnyHTTPSCertificateForHost"; "www.macsw.de")\]  
Set Web Viewer \[Object Name: "web"; URL: "https://www.macsw.de/plugin/Prerelease/"\]  
### Release notes

- **Version 9.3**
    - Implemented [WebView.AllowsAnyHTTPSCertificateForHost](http://www.mbsplugins.eu/WebViewAllowsAnyHTTPSCertificateForHost.shtml) for WebKit 2.x, so it works in FileMaker 16 and newer.

### Blog Entries

- [Neues MBS FileMaker Plugin 9.3 - Über 5900 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2019-07-24/Neues_MBS_FileMaker_Plugin_93_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 9.3 - More than 5900 Functions In One Plugin](https://www.mbsplugins.de/archive/2019-07-24/MBS_FileMaker_Plugin_93_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.3pr5](https://www.mbsplugins.de/archive/2019-07-13/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.2 for OS X/Windows](https://www.mbsplugins.de/archive/2016-05-24/MBS_FileMaker_Plugin_62_for_OS/monkeybreadsoftware_blog_filemaker)
- [Webviewer certificate overwrite](https://www.mbsplugins.de/archive/2016-05-20/Webviewer_certificate_overwrit/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.2pr10](https://www.mbsplugins.de/archive/2016-05-20/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th May 2016 , last changed 13th May 2021

  
[WebView.AllCookies](WebViewAllCookies.md) - [WebView.CallFunction](WebViewCallFunction.md)

[HTML Version](WebViewAllowsAnyHTTPSCertificateForHost.shtml)