form action이 빈 경우 CSRF token 문제 수정

예) 회원 그룹 > 저장
This commit is contained in:
conory 2019-01-29 23:11:28 +09:00
parent baeedb7aae
commit ba12035106

View file

@ -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));