export interface CreateApiHandlerOptions { /** * If set overrides the API Base URL. Usually, this URL * is taken from the ORY_KRATOS_URL environment variable. * * If you don't have a project you can use the playground project SDK URL: * * https://playground.projects.oryapis.com */ apiBaseUrlOverride?: string /** * Per default, this handler will strip the cookie domain from * the Set-Cookie instruction which is recommended for most set ups. * * If you are running this app on a subdomain and you want the session and CSRF cookies * to be valid for the whole TLD, you can use this setting to force a cookie domain. * * Please be aware that his method disables the `dontUseTldForCookieDomain` option. */ forceCookieDomain?: string /** * Per default the cookie will be set on the hosts top-level-domain. If the app * runs on www.example.org, the cookie domain will be set automatically to example.org. * * Set this option to true to disable that behaviour. */ dontUseTldForCookieDomain?: boolean /** * If set to true will set the "Secure" flag for all cookies. This might come in handy when you deploy * not on Vercel. */ forceCookieSecure?: boolean /** * If set to true will fallback to the playground if no other value is set for the Ory SDK URL. */ fallbackToPlayground?: boolean /** * Per default headers are filtered to forward only a fixed list. * * If you need to forward additional headers you can use this setting to define them. */ forwardAdditionalHeaders?: string[] }