I am making an http request, like an ajax, to a page of an API service for PDF printing.
MY problem is that if I make the request with http: //wwww.somepage/ the request is rejected by the api, it tells me the following message
Access to XMLHttpRequest at 'https://api.sejda.com/v2/html-pdf' from origin 'https://www.seinon.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin 'header is present on the requested resource.
I've forced it to include the Access-Control-Allow-Origin header a * for testing, and the request remains the same.
I need the www to maintain the sessions of the page, if not, they are lost and what I ask to print is blank
The api itself has a configuration parameter on its own website that is the source url that will allow the requests, I have set it to www.seinon.com and the problem continues the same
The header I have added with Response.AddHeader
What could be failing?