@@ -58,6 +58,12 @@ export class UtilsApi extends BaseAPI {
5858 const reqHeaders : RawAxiosRequestHeaders = {
5959 Authorization : undefined , // Disable by default to avoid accidental token exposure.
6060 'Content-Type' : contentType ,
61+ /* Override custom ShapeDiver headers to avoid CORS issues. */
62+ 'X-ShapeDiver-Origin' : undefined ,
63+ 'X-ShapeDiver-SessionEngineId' : undefined ,
64+ 'X-ShapeDiver-BuildVersion' : undefined ,
65+ 'X-ShapeDiver-BuildDate' : undefined ,
66+ 'X-ShapeDiver-UserAgent' : undefined ,
6167 } ;
6268 if ( filename ) reqHeaders [ 'Content-Disposition' ] = contentDispositionFromFilename ( filename ) ;
6369
@@ -85,6 +91,12 @@ export class UtilsApi extends BaseAPI {
8591 const reqHeaders : RawAxiosRequestHeaders = {
8692 Authorization : undefined , // Disable by default to avoid accidental token exposure.
8793 'Content-Type' : headers . contentType ,
94+ /* Override custom ShapeDiver headers to avoid CORS issues. */
95+ 'X-ShapeDiver-Origin' : undefined ,
96+ 'X-ShapeDiver-SessionEngineId' : undefined ,
97+ 'X-ShapeDiver-BuildVersion' : undefined ,
98+ 'X-ShapeDiver-BuildDate' : undefined ,
99+ 'X-ShapeDiver-UserAgent' : undefined ,
88100 } ;
89101 if ( headers . contentDisposition )
90102 reqHeaders [ 'Content-Disposition' ] = headers . contentDisposition ;
0 commit comments