Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

rahult_t_r
Level 1
Level 1

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 ?

1 Reply
Eric_Vidana
Level 8
Level 8

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