Suika
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
also thank to you and thank your for your time
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
awesome thanks man REALLY appreciate your help and time
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
omg it worked
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
no request to /dashboard has cookie info
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
should it or do i need new Cookie?
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
yes
@GetMapping("/dashboard")
public String index(Model model) {
model.addAttribute("activeModulList", modulService.findByActiveStatus(true));
model.addAttribute("deactivatedModulList", modulService.findByActiveStatus(false));
return "home";
}
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
yes with oath2
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
user must first log in to see /dashboard
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
?
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
and the server sends it because spring security is on and this: .csrf(csrf -> csrf.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()))
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
what if i just generate a iput hidden with the token in the get request?
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint

222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
all following request dont have a token?
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint

222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
only at the first time
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
no
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
but only at the second time
222 replies
JCHJava Community | Help. Code. Learn.
•Created by Suika on 2/18/2025 in #java-help
Spring Boot, JavaScript fetching Endpoint
then i get a token
222 replies