Skip to content

feat: support withCredentials in Swagger UI - #288

Merged
dzikoysk merged 1 commit into
javalin:mainfrom
anibalxyz:feat/swagger-with-credentials
Sep 21, 2026
Merged

dzikoysk merged 1 commit into
javalin:mainfrom
anibalxyz:feat/swagger-with-credentials

Conversation

@anibalxyz

Copy link
Copy Markdown
Contributor

Expose Swagger UI's withCredentials option in SwaggerConfiguration (default false).

When Swagger UI accesses an API cross-origin, cookie-based authentication requires credentials to be included in the requests. Without this option, the browser omits them, requiring custom JavaScript as a workaround.

Verified locally against a real backend: with the default false, credentials are omitted; with .withCredentials(true), they are sent.

@dzikoysk
dzikoysk merged commit a352e6c into javalin:main Sep 21, 2026
2 checks passed
@dzikoysk

Copy link
Copy Markdown
Member

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants