What is the postman-token header attribute in generated code from Postman?

后端 未结 1 1232
粉色の甜心
粉色の甜心 2020-12-08 18:25

I have been using postman to explore a REST interface. When using Postman\'s code generation feature, regardless of which programming language I select, Postman will always

相关标签:
1条回答
  • 2020-12-08 19:06

    This is primarily used to bypass a bug in Chrome. If an XMLHttpRequest is pending and another request is sent with the same parameters then Chrome returns the same response for both of them. Sending a random token avoids this issue. This can also help you distinguish between request on the server side.

    See docs/settings postman.

    0 讨论(0)
提交回复
热议问题