@aflorea I guess you are trying to call the API straight from your website's frontend ? If so, yes, this will trigger a CORS error.
We don't provide a way to adjust CORS headers. Usually apps have a way to adjust this but Stirling-PDF does not have a mechanism for this.
A workaround is to make your frontend call your website's backend and the backend proxies the call to Stirling-PDF.