sparse-father-97864
06/09/2024, 4:37 AMchilly-king-10285
06/09/2024, 4:37 AMchilly-king-10285
06/09/2024, 4:37 AMserve
settings in the identity configuration are used to define various aspects of how the Ory service operates. For instance, in the context of Ory Kratos, the serve
settings can be used to configure Cross-origin resource sharing (CORS) settings. This includes enabling CORS, specifying allowed origins, methods, headers, and exposed headers. Here is an example of how these settings might look: yaml serve: public: cors: enabled: true allowed_origins: - <https://example.org> - https://*.<http://example.org|example.org> allowed_methods: - POST - GET - PUT - PATCH - DELETE allowed_headers: - Authorization - Cookie - Content-Type exposed_headers: - Content-Type - Set-Cookie
(Source: [Ory Kratos CORS Settings](https://www.ory.sh/docs/kratos/guides/setting-up-cors)) In the context of Ory Hydra, the serve
settings can be used to configure cookie settings. This includes setting the SameSite mode, enabling a workaround for certain browser versions, and setting the cookie domain and names. Here is an example of how these settings might look: yaml serve: cookies: same_site_mode: Strict same_site_legacy_workaround: true domain: <http://example.com|example.com> names: login_csrf: login_name consent_csrf: consent_name session: session_name
(Source: [Ory Hydra Cookie Settings](https://www.ory.sh/docs/hydra/guides/cookies)) Please note that the exact settings available under serve
may vary depending on the specific Ory service and its version. Always refer to the relevant Ory documentation for the most accurate and up-to-date information.