mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
form action이 빈 경우 CSRF token 문제 수정
예) 회원 그룹 > 저장
This commit is contained in:
parent
baeedb7aae
commit
ba12035106
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@
|
|||
if (token) {
|
||||
return $(this).each(function() {
|
||||
if ($(this).data("csrf-token-checked") === "Y") return;
|
||||
if (!isSameOrigin(location.href, $(this).attr("action"))) {
|
||||
if ($(this).attr("action") && !isSameOrigin(location.href, $(this).attr("action"))) {
|
||||
return $(this).data("csrf-token-checked", "Y");
|
||||
}
|
||||
$("<input />").attr({ type: "hidden", name: "_rx_csrf_token", value: token }).appendTo($(this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue