Cloud API with JavaScript (Amazon, Azure)

前端 未结 5 1990
遇见更好的自我
遇见更好的自我 2021-02-14 06:50

I\'m researching a possibility of using some cloud storage directly from client-side JavaScript. However, I ran into two problems:

  1. Security - t

5条回答
  •  既然无缘
    2021-02-14 07:25

    Yes you can do this but you wouldn't want your azure key available on the client side for the javascript to be able to access the queue directly.

    I would have the javascript talking to a web service which could check access rights for the user and allow/disallow the posting of a message to the queue.

    So the javascript would only ever talk to the web services and leave the web services to handle talking to the queues.

    Its a little too big a subject to post sample code but hopefully this is enough to get you started.

提交回复
热议问题