mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
LibWeb: Send Origin on WebSocket connection
Some services using WebSockets require that the request contains the Origin header, otherwise these services will return a 403 Forbidden response. WebSocketServer already supports sending the Origin header, however LibWeb did not send the origin with the IPC request.
This commit is contained in:
parent
21ba9c808e
commit
39409438b2
2 changed files with 5 additions and 4 deletions
|
@ -35,7 +35,7 @@ class WebSocketClientManager : public Core::Object {
|
|||
public:
|
||||
static WebSocketClientManager& the();
|
||||
|
||||
RefPtr<Protocol::WebSocket> connect(const AK::URL&);
|
||||
RefPtr<Protocol::WebSocket> connect(const AK::URL&, String const& origin);
|
||||
|
||||
private:
|
||||
static ErrorOr<NonnullRefPtr<WebSocketClientManager>> try_create();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue