anz (~/git/navicore/anz/): #28

Merged
navicore merged 1 commit from cors into main 2026-05-25 12:42:41 +00:00
Owner
  • Cargo.toml: added "cors" feature to tower-http.
  • src/config.rs: new cors_allowed_origins: Vec field (default empty → no CORS, preserving today's
    behavior for Forgejo/k8s). Two new tests.
  • src/server/mod.rs: new cors_layer() helper that builds a CorsLayer from the allow-list (exact-match origins,
    GET/POST/OPTIONS, content-type + authorization headers, no credentials since PKCE doesn't use cookies). Applied
    to the whole router only when the list is non-empty. Three new tests.
  • anz.toml.example: commented cors_allowed_origins example.
  • just ci green: fmt, clippy -D warnings, tests, release build.
- Cargo.toml: added "cors" feature to tower-http. - src/config.rs: new cors_allowed_origins: Vec<String> field (default empty → no CORS, preserving today's behavior for Forgejo/k8s). Two new tests. - src/server/mod.rs: new cors_layer() helper that builds a CorsLayer from the allow-list (exact-match origins, GET/POST/OPTIONS, content-type + authorization headers, no credentials since PKCE doesn't use cookies). Applied to the whole router only when the list is non-empty. Three new tests. - anz.toml.example: commented cors_allowed_origins example. - just ci green: fmt, clippy -D warnings, tests, release build.
anz (~/git/navicore/anz/):
All checks were successful
CI / ci (pull_request) Successful in 1m39s
ac2a2667eb
- Cargo.toml: added "cors" feature to tower-http.
- src/config.rs: new cors_allowed_origins: Vec<String> field (default empty → no CORS, preserving today's
behavior for Forgejo/k8s). Two new tests.
- src/server/mod.rs: new cors_layer() helper that builds a CorsLayer from the allow-list (exact-match origins,
GET/POST/OPTIONS, content-type + authorization headers, no credentials since PKCE doesn't use cookies). Applied
to the whole router only when the list is non-empty. Three new tests.
- anz.toml.example: commented cors_allowed_origins example.
- just ci green: fmt, clippy -D warnings, tests, release build.
navicore deleted branch cors 2026-05-25 12:42:41 +00:00
Sign in to join this conversation.
No description provided.