You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we add CookieConfig to the Csrf middleware too? Mainly I would like to be able to change the csrf token cookie name. I don't know how applicable all of the fields are, but maybe it can just be copied from Session middleware?
let app = Route::new().nest("/", api_service).with(ServerSession::new(CookieConfig::new().name("my_session_id_cookie_name").secure(false),MemoryStorage::new())).with(Csrf::new(CookieConfig::new().name("my_csrf_token_cookie_name").secure(false)));
EDIT: I might have been a bit misguided... Swagger UI uses a cookie for csrf, but that obviously shouldn't be used in production. You can close this one I think.
The text was updated successfully, but these errors were encountered:
Can we add CookieConfig to the Csrf middleware too? Mainly I would like to be able to change the csrf token cookie name. I don't know how applicable all of the fields are, but maybe it can just be copied from Session middleware?
The text was updated successfully, but these errors were encountered: