csrf.token

인철·2023년 10월 17일
0

Spring

목록 보기
35/48

csrf.token 활용 태그

input

<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />

meta

<meta name="_csrf" th:content="${_csrf.token}"/>
<meta name="_csrf_header" th:content="${_csrf.headerName}"/>

헤더

<th:block th:remove="tag">
    <input type="hidden" name="${_csrf.headerName}" value="${_csrf.token}"/>
</th:block>
profile
같은글이있어도양해부탁드려요(킁킁)

0개의 댓글