File: index.html

package info (click to toggle)
golang-github-gorilla-csrf 1.7.2%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: javascript: 38; makefile: 30
file content (34 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Gorilla CSRF</title>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
<div>
    <h1>Gorilla CSRF: Axios JS Frontend</h1>
    <p>See Console and Network tabs of your browser's Developer Tools for further details</p>
</div>

<div>
    <h2>Get Request:</h2>
    <h3>Full Response:</h3>
    <code id="get-request-full-response"></code>
    <h3>CSRF Token:</h3>
    <code id="get-response-csrf-token"></code>
</div>


<div>
    <h2>Post Request:</h2>
    <h3>Full Response:</h3>
    <p>
        Note that the <code>X-CSRF-Token</code> value is in the Axios <code>config.headers</code>;
        it is not a response header set by the server.
    </p>
    <code id="post-request-full-response"></code>
</div>
</body>
<script src="index.js"></script>
</html>