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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

CORS Policy issue on Browser on Offer Proposition update

vikas_nagabhushana
Level 1
Level 1

We have offer rendered on the Browser and making the Update status call to update the proposition status. But we get CORS policy as shown below on the browser.

 

Access to XMLHttpRequest at 'https://<url>/interaction/liveRcp/<offerspace>?a=UpdateStatus&st=1&p=123' from origin '<browser_url>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

 

We got the DNS whitelisted on Adobe campaign server but it didnt help. Please suggest on how to solve this issue

 

Thanks in Advance.

1 Accepted Solution
wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

 

What does this line mean, out of curiosity?

'We got the DNS whitelisted on Adobe campaign server'

 

CORS can be enabled in Apache or IIS on the Interaction server following this guide:

https://www.w3.org/wiki/CORS_Enabled#For_Apache

 

Thanks,

-Jon

View solution in original post

3 Replies
wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

 

What does this line mean, out of curiosity?

'We got the DNS whitelisted on Adobe campaign server'

 

CORS can be enabled in Apache or IIS on the Interaction server following this guide:

https://www.w3.org/wiki/CORS_Enabled#For_Apache

 

Thanks,

-Jon

View solution in original post

vikas_nagabhushana
Level 1
Level 1

Hi @wodnicki ,

 

We got the DNS whitelisted on Adobe campaign server -> we are accessing offers on a web page with URL for example - https://offer.abc.com . So we got the DNS:  *.abc.com whitelisted on adobe campaign server to solve the CORS issue. This didn't rectify the issue.

 

So, as per your comment, we need to get CORS enabled on abc.com server OR on the adobe campaign interaction server ? Please let me know.

 

Thanks,

wodnicki
Community Advisor
Community Advisor
No you have to enable it on the Apache or IIS server fronting the app server, per that guide.