Web services API Keys and Ajax - Securing the Key

后端 未结 5 1865
轮回少年
轮回少年 2020-12-23 23:23

This is probably a generic security question, but I thought I\'d ask in the realm of what I\'m developing.

The scenario is: A web service (WCF Web Api) that uses an

5条回答
  •  执笔经年
    2020-12-23 23:40

    Generally in cases like this though you proxy requests through the server using 'AJAX' which verifies the browser making requests is authorized to do so. If you want to call the service directly from JavaScript, then you need some kind of token system like JSON Web Tokens (JWT) and you'll have to work out cross-domain issues if the service is located somewhere other than the current domain.

提交回复
热议问题