mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
webFrame: enable privileged schemes to send CORS requests
This commit is contained in:
@@ -146,6 +146,7 @@ void WebFrame::RegisterURLSchemeAsPrivileged(const std::string& scheme) {
|
||||
privileged_scheme);
|
||||
blink::WebSecurityPolicy::registerURLSchemeAsSupportingFetchAPI(
|
||||
privileged_scheme);
|
||||
blink::WebSecurityPolicy::registerURLSchemeAsCORSEnabled(privileged_scheme);
|
||||
}
|
||||
|
||||
void WebFrame::InsertText(const std::string& text) {
|
||||
|
||||
Reference in New Issue
Block a user