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_script_source.h"
|
||||||
#include "third_party/blink/public/web/web_view.h"
|
#include "third_party/blink/public/web/web_view.h"
|
||||||
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
|
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
|
||||||
|
#include "url/url_util.h"
|
||||||
|
|
||||||
#include "atom/common/node_includes.h"
|
#include "atom/common/node_includes.h"
|
||||||
|
|
||||||
|
@ -276,9 +277,7 @@ void WebFrame::RegisterURLSchemeAsPrivileged(const std::string& scheme,
|
||||||
privileged_scheme);
|
privileged_scheme);
|
||||||
}
|
}
|
||||||
if (corsEnabled) {
|
if (corsEnabled) {
|
||||||
// FIXME: blink::SchemeRegistry::RegisterURLSchemeAsCORSEnabled
|
url::AddCORSEnabledScheme(scheme.c_str());
|
||||||
// is removed with C70
|
|
||||||
// https://chromium-review.googlesource.com/c/chromium/src/+/1157364
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue