File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
client/vendor/forge-js-sdk/src Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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} ( ) ) ;
You can’t perform that action at this time.
0 commit comments