소개
게시글
질문&답변
2024.01.18
ajax 구현 부분 작동이 안되서 질문드립니다.
2024-01-18T23:51:53.108+09:00 DEBUG 61228 --- [nio-8080-exec-3] o.s.web.servlet.DispatcherServlet : GET "/login", parameters={}2024-01-18T23:51:53.108+09:00 DEBUG 61228 --- [nio-8080-exec-3] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to io.security.corespringsecurity.controller.login.loginController#login(String, String, Model)2024-01-18T23:51:53.108+09:00 INFO 61228 --- [nio-8080-exec-3] i.s.c.controller.login.loginController : 요청2024-01-18T23:51:53.108+09:00 DEBUG 61228 --- [nio-8080-exec-3] o.s.w.s.v.ContentNegotiatingViewResolver : Selected '*/*' given [*/*]2024-01-18T23:51:53.113+09:00 DEBUG 61228 --- [nio-8080-exec-3] o.s.web.servlet.DispatcherServlet : Completed 200 OK
- 0
- 4
- 393
질문&답변
2024.01.18
ajax 구현 부분 작동이 안되서 질문드립니다.
PS C:\Users\T.K> curl -i -X POST -H "Content-Type: application/json" -H "X-Requested-With: XMLHttpRequest" -d '{"username": "user", "password": "1111"}' http://localhost:8080/api/loginHTTP/1.1 302Vary: OriginVary: Access-Control-Request-MethodVary: Access-Control-Request-HeadersSet-Cookie: JSESSIONID=011CC19FE72CB6FF3729B2763B395527; Path=/; HttpOnlyX-Content-Type-Options: nosniffX-XSS-Protection: 0Cache-Control: no-cache, no-store, max-age=0, must-revalidatePragma: no-cacheExpires: 0X-Frame-Options: DENYLocation: http://localhost:8080/denied?exception=Could not verify the provided CSRF token because no token was found to compare.Content-Length: 0Date: Thu, 18 Jan 2024 14:53:12 GMT
- 0
- 4
- 393