diff --git a/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp b/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
index e971477da892..bbf5304600cc 100644
--- a/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
@@ -224,6 +224,11 @@ bool SchemeRegistry::ShouldTreatURLSchemeAsCORSEnabled(const String& scheme) {
   return GetURLSchemesRegistry().cors_enabled_schemes.Contains(scheme);
 }
 
+void SchemeRegistry::RegisterURLSchemeAsCORSEnabled(const String& scheme) {
+  DCHECK_EQ(scheme, scheme.DeprecatedLower());
+  GetMutableURLSchemesRegistry().cors_enabled_schemes.insert(scheme);
+}
+
 String SchemeRegistry::ListOfCORSEnabledURLSchemes() {
   StringBuilder builder;
   bool add_separator = false;

Add a patch to restore a way to add custom CORS-enabled schemes
Add a patch to restore a way to add custom CORS-enabled schemes

Method was removed in
https://chromium-review.googlesource.com/c/chromium/src/+/530888
