소개
게시글
질문&답변
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
- 239
질문&답변
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/login HTTP/1.1 302 Vary: Origin Vary: Access-Control-Request-Method Vary: Access-Control-Request-Headers Set-Cookie: JSESSIONID=011CC19FE72CB6FF3729B2763B395527; Path=/; HttpOnly X-Content-Type-Options: nosniff X-XSS-Protection: 0 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-Frame-Options: DENY Location: http://localhost:8080/denied?exception=Could not verify the provided CSRF token because no token was found to compare. Content-Length: 0 Date: Thu, 18 Jan 2024 14:53:12 GMT
- 0
- 4
- 239