Skip to content

Commit a6ee7b4

Browse files
committed
Separate protocol and endpoint
1 parent 3ba8b8a commit a6ee7b4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

client/vendor/forge-js-sdk/src/Client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ Autodesk.Forge = Autodesk.Forge || {};
114114
_clientId = clientId;
115115
switch(options.env) {
116116
case 'stg':
117-
_apiBaseUrl = Constants.API_HOST_STG;
117+
_apiBaseUrl = Constants.API_PROTOCOL + '://' + Constants.API_HOST_STG;
118118
break;
119119
case 'prod':
120-
_apiBaseUrl = Constants.API_HOST_PROD;
120+
_apiBaseUrl = Constants.API_PROTOCOL + '://' + Constants.API_HOST_PROD;
121121
break;
122122
default:
123-
_apiBaseUrl = Constants.API_HOST_DEV;
123+
_apiBaseUrl = Constants.API_PROTOCOL + '://' + Constants.API_HOST_DEV;
124124
}
125125
_redirectUri = options && options.redirectUri ? options.redirectUri : null;
126126
_2LeggedTokenUrl = options && options.twoLeggedTokenUrl ? options.twoLeggedTokenUrl : null;

client/vendor/forge-js-sdk/src/Constants.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ Autodesk.Forge = Autodesk.Forge || {};
2929
*/
3030
Autodesk.Forge.Constants = {
3131
//api endpoints
32-
API_HOST_PROD: 'https://developer.api.autodesk.com',
33-
API_HOST_STG: 'https://developer-stg.api.autodesk.com',
34-
API_HOST_DEV: 'https://developer-dev.api.autodesk.com'
32+
API_HOST_PROD: 'developer.api.autodesk.com',
33+
API_HOST_STG: 'developer-stg.api.autodesk.com',
34+
API_HOST_DEV: 'developer-dev.api.autodesk.com',
35+
//api protocol
36+
API_PROTOCOL: 'https'
3537
};
3638

3739
}());

0 commit comments

Comments
 (0)