Skip to main content

Blocked by CORS policy

Thread needs solution

Good morning:

I'm trying to fetch /api/2/idp/token endpoint with AJAX but I'm getting an error caused by CORS policy block

Any suggestion please?

 

Thanks in advance

Attachment Size
error_cors.png 6.24 KB
get_token.png 16.2 KB
0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 2
Comments: 1727

Hello Victor,

This CORS error is the expected behavior here because performing such cross-domain requests is not allowed.

As far as I can see, these errors can be addressed by enabling proper CORS headers on the server-side. The first option does not work due to security reasons.

There are no workarounds except for adding some Acronis API calls to the backend side and then calling the backend from the frontend side.

I advise you to raise a ticket with our support or contact your service provider to address this issue. You can find further assistance at https://kb.acronis.com/content/8153.

Thanks in advance!