mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Implement XMLHttpRequest.withCredentials
This commit is contained in:
parent
bfa378660b
commit
93c0c73b9e
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/linusg
Commit: 93c0c73b9e
Pull-request: https://github.com/SerenityOS/serenity/pull/16048
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/kennethmyhra ✅
3 changed files with 35 additions and 2 deletions
|
@ -63,8 +63,11 @@ public:
|
|||
|
||||
WebIDL::ExceptionOr<void> override_mime_type(String const& mime);
|
||||
|
||||
WebIDL::ExceptionOr<void> set_timeout(u32 timeout);
|
||||
u32 timeout() const;
|
||||
WebIDL::ExceptionOr<void> set_timeout(u32 timeout);
|
||||
|
||||
bool with_credentials() const;
|
||||
WebIDL::ExceptionOr<void> set_with_credentials(bool);
|
||||
|
||||
void abort();
|
||||
|
||||
|
@ -103,7 +106,10 @@ private:
|
|||
// An unsigned integer, initially 0.
|
||||
u32 m_timeout { 0 };
|
||||
|
||||
// FIXME: https://xhr.spec.whatwg.org/#cross-origin-credentials
|
||||
// https://xhr.spec.whatwg.org/#cross-origin-credentials
|
||||
// cross-origin credentials
|
||||
// A boolean, initially false.
|
||||
bool m_cross_origin_credentials { false };
|
||||
|
||||
// https://xhr.spec.whatwg.org/#request-method
|
||||
// request method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue