2MPJPGRYNR4BD4H6OS2PKQTFBBYQZSD5ISQ762VEJFDAE5MMXULQC
pub async fn cookies_policy(data: web::Data<WebData<'_>>) -> HttpResponse {
pub async fn cookies_policy(request: HttpRequest, data: web::Data<WebData<'_>>) -> HttpResponse {
let mut jar = cookie::CookieJar::new();
match request.cookies() {
Ok(cookies) => {
for cookie in &*cookies {
jar.add_original(cookie.clone());
}
}
Err(e) => {
log::error!("Cann't get cookies from request: {}", e);
}
}