I've recently encountered a strange issue with my application when trying to implement a handler for post data.
The request uses an http scheme with a custom domain. I've implemented the scheme handler for these requests.
I've been getting NULL PostData from the request and when I observe the Request from the dev tools, there is no Payload for the request.
However, I've tried launching the app from a shortcut with the switch --disable-web-security and I'm able to observe the Payload for the request on the dev tools.
I've implemented the following code to disable web security programmatically,
- Code: Select all
CefRefPtr<CefCommandLine> command_line = CefCommandLine::CreateCommandLine();
command_line->InitFromString(::GetCommandLineW());
command_line->AppendSwitch("disable-web-security");
But even with this code, I'm not able to get the Payload when launching from visual studio.
Only the shortcut with the switch works.
What could be the reason for this?