/* * Copyright (c) 2023, Srikavin Ramkumar * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::HTML { // https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attribute enum class CORSSettingAttribute { NoCORS, Anonymous, UseCredentials }; [[nodiscard]] CORSSettingAttribute cors_setting_attribute_from_keyword(Optional const& keyword); [[nodiscard]] Fetch::Infrastructure::Request::CredentialsMode cors_settings_attribute_credentials_mode(CORSSettingAttribute); }