Cloud API with JavaScript (Amazon, Azure)

前端 未结 5 1969
遇见更好的自我
遇见更好的自我 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:27

    I think that the existing service providers do not allow you to query storage directly from the client. So in order to resolve the issues:

    1. you can write a simple Server and expose REST apis which authenticate based on the APIKey passed on as a request param and get your specific data back to your client.
    2. Have an embedded iframe and make the call to 2nd domain from the iframe. Get the returned JSON/XML on the parent frame and process the data.

    Update: Looks like Google already solves your problem. Check this out.

    On https://developers.google.com/storage/docs/json_api/v1/libraries check the Google Cloud Storage JSON API client libraries section.

提交回复
热议问题