webFrame: enable privileged schemes to send CORS requests
This commit is contained in:
parent
58b391cb77
commit
77173be1c6
2 changed files with 47 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue