Skip to content

enhance: accept String not only &'static str in Cors::new, Csrf::with_trusted_origins, and openapi::Server::at#627

Merged
kanarus merged 1 commit intomainfrom
enhance/accept-dynamic-configuration-string
Feb 6, 2026
Merged

enhance: accept String not only &'static str in Cors::new, Csrf::with_trusted_origins, and openapi::Server::at#627
kanarus merged 1 commit intomainfrom
enhance/accept-dynamic-configuration-string

Conversation

@kanarus
Copy link
Member

@kanarus kanarus commented Feb 6, 2026


Additional internal refacotring:

  • Adds origin validation in Cors::new
  • Renames CORSProc to CorsProc
  • Refactors openapi::Document::new to accept Strings

…f::with_trusted_origins`, and `openapi::Server::at`
@kanarus kanarus merged commit 24cefe3 into main Feb 6, 2026
13 checks passed
@kanarus kanarus deleted the enhance/accept-dynamic-configuration-string branch February 6, 2026 15:06
@kanarus kanarus added the enhance Update or expand an existing functionality label Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhance Update or expand an existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is static lifetime of Cors origin necessary?

1 participant