CSRF cookie isn't transmitted when using a mixture of Vite and Rust in debug mode
Dependencies
- [2]
D4SBRY6KInitial patch - [3]
LE34RHBBFixing a CORS bug - [4]
X7GJK2QDUpdate - [5]
HRAWXWFEForwarding the set-cookie header set for CSRF
Change contents
- replacement in ui/src/hooks.server.ts at line 12
console.log("request", request.url)console.log('request', request.url); - edit in api/src/main.rs at line 758
}}fn csrf_verify(token: &axum_csrf::CsrfToken, t: &str) -> Result<(), Error> {if cfg!(debug_assertions) {Ok(())} else {Ok(token.verify(t)?) - edit in api/src/channel.rs at line 1
use crate::Config; - edit in api/src/channel.rs at line 4
use crate::Config; - edit in api/src/channel.rs at line 5
Router, - edit in api/src/channel.rs at line 9
Router, - replacement in api/src/channel.rs at line 39
token.verify(&fork.token)?;crate::csrf_verify(&token, &fork.token)?;