ga('set', 'anonymizeIp', 1);
Categories: Codingweb

[Web] Get the x-csrf-token value using Postman

Share

Sometimes we might be asked to fetch the x-csrf-token value before we make a POST request. This artical shows how to fetch the x-csrf-token value in header section.

Demo in POSTMAN

We add a pair of key-value to Headers in a GET request.

Key Value
x-csrf-token fetch

Execute the request.
Then we retrieve the return Header.
Find the x-csrf-token → VALUE.

Finally, we can use this token to access other APIs.

Jys

Published by
Jys

Recent Posts

[python] Flask Create RESTful API

This article gi... Read More

2 年 前發表

[Javascript] 新增/刪除JSON中key值

在web訊息交換常會需要對JS... Read More

2 年 前發表

[JAVA] SQL Server Connection

本文介紹JAVA連線SQL s... Read More

3 年 前發表

[python] 檔案整理 – 整理影片檔長度資訊存入excel

本文介紹如何使用python寫... Read More

3 年 前發表