CORS OPTIONS ( Preflight ) request returns ERROR from Target ( AT.js getOffer Call) | Community
Skip to main content
February 11, 2019

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

  • February 11, 2019
  • 1 reply
  • 3846 views

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Community Advisor
February 11, 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