JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

WebBrowserComponent: Fix adding custom HTTP headers on Linux

Open paulgration opened this issue 1 year ago • 0 comments

Adds the missing functionality of being able to send additional custom HTTP headers with WebBrowserComponent requests on Linux as described in the documentation.

See forum post: Juce WebBrowserComponent not sending additional HTTP headers

Example usage:

std::unique_ptr<juce::StringArray> headers = std::make_unique<juce::StringArray> (
    "Hello: World",
    "Foo: Bar"
);

webView->goToURL ("http://localhost:5000", headers.get());

paulgration avatar Jan 28 '24 13:01 paulgration