No more header “Access-Control-Allow-Origin” in REST API response (Xanadu release)

Patrice VH
Tera Contributor

Hello,


It seems ServiceNow changed how REST CORS rules are defined in Xanadu release and now it does not work anymore !!!

I tried to define the rule with the new definition but it still does not work…. The response from ServiceNow does not include the header “Access-Control-Allow-Origin” …. and the request is refused.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0831585

https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/integrate/inbound-rest/task/t_Defin...

 

I did the test in Washington DC release and everything works as expected (same code) but no more in Xanadu !!!

 

Is it a known issue ?

 

 

Washington DC 

Build date: 09-27-2024_0148
Build tag: glide-washingtondc-12-20-2023__patch8-09-19-2024
Instance name: dev257505

 

PatriceVH_0-1732192288744.png

 

PatriceVH_2-1732192439432.png

 

Xanadu 

Build date: 11-01-2024_2230
Build tag: glide-xanadu-07-02-2024__patch3-10-23-2024
Instance name: dev290699

 

PatriceVH_1-1732192351601.png

 

PatriceVH_3-1732192605822.png

PatriceVH_4-1732192755688.png

 

 

Can you help me ?

 

Thank you

1 REPLY 1

Patrice VH
Tera Contributor

I reply to myself.

 

It's ok with Xanadu if you extend the config

 

PatriceVH_0-1733745362855.png

 

PatriceVH_1-1733745460066.png