Solved

OPTIONS request with "request-id" is blocked

  • 19 March 2021
  • 2 replies
  • 178 views

Badge

When using Amplitude and AppInsights together on the client side, the browser is flooded with error messages like below.

 

Access to XMLHttpRequest at 'https://api.appcues.net/v1/accounts/111111111111111' from origin 'http://222222222222' has been blocked by CORS policy: Request header field request-id is not allowed by Access-Control-Allow-Headers in preflight response.

Is is possible to make appcues accept the “request-id” header for OPTIONS request?

icon

Best answer by dshen 22 March 2021, 23:11

View original

2 replies

Userlevel 6
Badge +9

Hey @dshen thank you for posting this - for this one I have created a Support Ticket, and I will reach out to you there, since I would need some help form our Engineering team for this.

 

Badge

Hi Daniel,

 

I found AppInsights SDK allows you to define a domain exclusion list. I think it is a better way to resolve this issue.

 

Thanks.

 

Reply