从客户端隐藏访问令牌

Hiding access token from client side

我按照 tutorial 生成和使用访问令牌。现在,我把它放在 Autodesk.Viewing.Initializer 的选项参数中就好了。 我的问题是,我必须使用 jQuery 调用路由,因此,从 devtools 的网络选项卡中可以看到响应。 有没有办法完全隐藏它?

提前致谢。

您可以尝试使用以下描述的令牌代理机制: https://forge.autodesk.com/blog/proxying-forge-viewer 要么 https://forge.autodesk.com/blog/securing-your-forge-viewer-token-behind-proxy