Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

CORS blocking an IFrame

obaylac
Tera Contributor

Hello Everyone,

I already posted this, but the sow forum was probably not the best place.

 

I'm trying to set a "add to visual task board" button in the service operations workspace, (and I've been gradually loosing my mind over the course of this week!)
my latest Idea was to add a button opening an IFrame Modal in UI builder , after waging war against this atrocious duo data bindings/ client script with totally unknown parameters (api ??? helpers?????) to set the url, I'm now being blocked by CORS....

v7i9mb.gif

 

the url I'm trying to open is 

 "$vtb_add_to_board.do?sysparm_record_id=" + g_form.getUniqueValue() + "&sysparm_table_name=" + g_form.getTableName() + "&sysparm_nostack=true"
 
and here are some of the many errors I get :
obaylac_2-1718893448310.pngobaylac_3-1718893484997.pngobaylac_4-1718893533769.png

 


 The thing is, from what I did understand of this thing, it is the resource that need to have 'Access-Control-Allow-Origin' in it's Header, and I don't know what I can do about that....

 
Thanks! 

 

0 REPLIES 0