fix: use url::AddCORSEnabledScheme
This commit is contained in:
parent
1523a82bab
commit
c51fef1568
1 changed files with 2 additions and 3 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "third_party/blink/public/web/web_script_source.h"
|
||||
#include "third_party/blink/public/web/web_view.h"
|
||||
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
|
||||
#include "url/url_util.h"
|
||||
|
||||
#include "atom/common/node_includes.h"
|
||||
|
||||
|
@ -276,9 +277,7 @@ void WebFrame::RegisterURLSchemeAsPrivileged(const std::string& scheme,
|
|||
privileged_scheme);
|
||||
}
|
||||
if (corsEnabled) {
|
||||
// FIXME: blink::SchemeRegistry::RegisterURLSchemeAsCORSEnabled
|
||||
// is removed with C70
|
||||
// https://chromium-review.googlesource.com/c/chromium/src/+/1157364
|
||||
url::AddCORSEnabledScheme(scheme.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue