Backbone/JS: looking to access the Twilio SMS API via an AJAX call

血红的双手。 提交于 2019-12-06 16:08:20
g3rv4

You shouldn't, under any circumstance, have your authToken (and the situation is worse as you're also including your account sid) available for anyone who wants to see you source code.

With that info, I can provision numbers on your behalf, make calls, return numbers... You just can't do it on the client side.

You should connect (using Ajax if you want) to your server, which in turn would connect to twilio passing your credentials. That way, the only one who knows them is your server.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!