Add option to enable fetch support for custom schemes (issue #2579)

This commit is contained in:
Alexander Guettler
2019-02-04 22:31:31 +00:00
committed by Marshall Greenblatt
parent 667d190547
commit a72e00a7b9
16 changed files with 517 additions and 21 deletions

View File

@ -137,6 +137,8 @@ class CefSchemeRegistrar : public CefBaseScoped {
// (CSP) checks. This value should be false in most cases where |is_standard|
// is true.
//
// If |is_fetch_enabled| is true the scheme can perform Fetch API requests.
//
// This function may be called on any thread. It should only be called once
// per unique |scheme_name| value. If |scheme_name| is already registered or
// if an error occurs this method will return false.
@ -148,7 +150,8 @@ class CefSchemeRegistrar : public CefBaseScoped {
bool is_display_isolated,
bool is_secure,
bool is_cors_enabled,
bool is_csp_bypassing) = 0;
bool is_csp_bypassing,
bool is_fetch_enabled) = 0;
};
///