Reputation: 502
when using the forge viewer to view locally stored files, How can I add an authorization token to the header of all file access requests.
Upvotes: 1
Views: 149
Reputation: 5342
Unfortunately load options won't cut it when set to local environment so you will head to make do with:
Autodesk.Viewing.Initializer(options, function(){
Autodesk.Viewing.endpoint.HTTP_REQUEST_HEADERS = {
Authorization: '233',
...//Other custom headers
}
Upvotes: 1