How can I validate/secure/authenticate a JavaScript-based POST request?

前端 未结 10 2034
孤独总比滥情好
孤独总比滥情好 2020-12-14 20:27

A product I\'m helping to develop will basically work like this:

  • A Web publisher creates a new page on their site that includes a
10条回答
  •  -上瘾入骨i
    2020-12-14 21:14

    Give people keys on a per-domain basis.

    Make people include in the requests the hash the value of the [key string + request parameters]. (The hash value should be computed on the server)

    When they send you the request, you, knowing the parameters and the key, can verify the validity.

提交回复
热议问题