PageSourceSearch

https://www.gdx.net/js/form-csrf.js

js gdx.net collected 2026-10-02 03:55:28 UTC 575 bytes, 12 lines download raw bytes

1// Cross Site Request Forgery (CSRF) support.
2// http://docs.spring.io/spring-security/site/docs/3.2.10.RELEASE/reference/htmlsingle/html5/#csrf
3$(document).ready(function(){
4	var token = $("meta[name='_csrf']").attr("content");
5	var csrfInput = $('<input type="hidden" />').attr("name", "_csrf").attr("value", token);
6
7	$('form[method="patch"], form[method="post"], form[method="put"], form[method="delete"], form[id="cse-search-box"]').each(function(index) {
8		if (!$(this).find('input[name="_csrf"]').length) {
9			$(this).append(csrfInput.clone());
10		}
11	});
12});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.