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

The 1st edition of the Target Community Lens newsletter is out now! Click to the right to find all the latest updates

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

Avatar

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

Avatar

Community Advisor

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