can not access localStorage in custom scheme

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

can not access localStorage in custom scheme

Postby CaiHuan » Wed Jul 29, 2020 6:41 am

void ClientAppBrowser::OnRegisterCustomSchemes(
CefRawPtr<CefSchemeRegistrar> registrar) {
registrar->AddCustomScheme("aa", CEF_SCHEME_OPTION_LOCAL |
CEF_SCHEME_OPTION_CORS_ENABLED);
cookieable_schemes_.push_back(kWechatScheme);
}

void ClientAppRenderer::OnRegisterCustomSchemes(
CefRawPtr<CefSchemeRegistrar> registrar) {
registrar->AddCustomScheme(
L"aa", CEF_SCHEME_OPTION_LOCAL | CEF_SCHEME_OPTION_CORS_ENABLED);
}

CefRegisterSchemeHandlerFactory("aa", "bb", new ClientSchemeHandlerFactory());

i add aa to cef custom shceme,and return html data but the window can not access localStorage
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: can not access localStorage in custom scheme

Postby magreenblatt » Thu Jul 30, 2020 12:16 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 87 guests