CORS OPTIONS ( Preflight ) request returns ERROR from Target ( AT.js getOffer Call)

Avatar

Avatar
Level 1
rahult_t_r
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
rahult_t_r
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
rahult_t_r
Level 1

11-02-2019

HI ,

I am using Adobe Target ( Mbox.js ) for the past few years. Now we are migrating to AT.js. I have integrated and I am making a getOffer call

In our new application , we have setup few CORS rules due to which each XHR call is preceded by an Http OPTIONS call ( pre-flight call ) for security reasons.

BUT the http pre-flight (OPTIONS) calls are failing when I am making this call to Adobe  Target . It gives 200 Application Error Response status and in response I get a response mboxEnv.disable(10 * 60) // got 500 from node.

But if I hit the same Target Call directly as a GET call it works. ( the OPTIONS pre-flight request gives error response ).

Is there anything that I need to enable OR request Adobe Team to setup in my campaign ?

Replies

Avatar

Avatar
Contributor
Level 7
Eric_Vidana
Level 7

Likes

157 likes

Total Posts

151 posts

Correct reply

37 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Contributor
Level 7
Eric_Vidana
Level 7

Likes

157 likes

Total Posts

151 posts

Correct reply

37 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back 25
View profile
Eric_Vidana
Level 7

11-02-2019

I get the same. Seems like they do not support the OPTIONS method. The API endpoints don't seem to care, though that is probably a different can of worms from the client side (at.js) approach.

Adobe Target Developers