<p>Hello everybody,</p>
<p>Just got in the amazing world of GO(previous experience was game making with C#).I am learning about how are websites operate at a deeper level since i always used WordPress.I wanna make a converter as a starter project.Simple page with a text form and a button.User enters the video url and then it sends it into the "backend",which from what i found, a good way is using RESTful API for communication,the GO app downloads the video ,stores it in the Database, and returns a download link.Excuse me from my ignorance,but doesn't that give access to anyone use the same url and get the results,without using my website?How can i only allow my website(and maybe a mobile app,but that's for later)to access my api,so it doesn't get abused?</p>
<p>Many thanks!,hope it's ok to post here,since i know it's not strictly about GO but hopefully some of you have gone through the same...</p>
<p>Extra info if required:I have a VPS running with Ubuntu 16.04,with apache in port 80 for a wordpress site and the GO http server running at 8080 for the API.</p>
How to properly use RESTful API for communicating with backend?Beginner question(security)
agolangf · · 424 次点击这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传