1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:47:44 +00:00

LibWeb: Implement XMLHttpRequest.withCredentials

This commit is contained in:
Linus Groh 2022-11-13 14:47:21 +00:00
parent bfa378660b
commit 93c0c73b9e
3 changed files with 35 additions and 2 deletions

View file

@ -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