我正在尝试构建一个示例 Web 应用程序来演示 休息 使用技术 去 在后端,服务 json 基于请求和 javascript, 查询在前端(我没有使用html/template
包)。
文件服务器 "returns a handler that serves HTTP requests with the contents of the file system rooted at root."
假设我要发布static
包含一些 文件的文件夹index.html
和scripts
文件夹javascript
。
如何防止客户端查看我的js
文件(仅发布index.html
at /
)?
相关分类