当我打开查看器时,我收到了以下错误:
Failed to load https://ase.autodesk.com/adp/v1/analytics/upload: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://ontargetapp.local' is therefore not allowed access. The response had HTTP status code 503.
2adp-web-analytics-sdk.min.js:4 OPTIONS https://ase.autodesk.com/adp/v1/analytics/upload 503 (Service Unavailable: Back-end server is at capacity)
我该如何解决?
答案 0 :(得分:0)
您无需解决此问题 - 这是一个不需要遵守的OPTIONS HTTP请求 - 它对查看者没有影响 - 这是Autodesk的分析调用。
答案 1 :(得分:0)
是的,只需添加' useADP:false'加载选项,像这样...
var options = {
env: "Local",
useADP: false,
}
Autodesk.Viewing.Initializer( options, function() {
viewer.start(myURN, options, onSuccess);
});
等
参考: HTML5 video javascript controls - restart video
这将关闭分析并删除您看到的错误。希望有所帮助!
已更新