hi all, This is related to CA Agile Central (Rally). I am running a html-javascript program via the app 'Custom HTML'. I am not using Rally SDK but plain html-js code. I am using 'fetch' module in javascript for REST API calls. It works fine for get requests. But for post request, i get error:
{"CreateResult": {"_rallyAPIMajor": "2", "_rallyAPIMinor": "0", "Errors": ["Not authorized to perform action: Invalid key"], "Warnings": []}}
The strange this is the same program code is working when i am running the whole thing as a stand alone HTML file i.e outside Rally i.e. from my local machine. Can someone please help?
I have WSA permissions on the workspace i am trying this action on. The code I am using is -
const resp = await fetch(<someURL>, {
method: 'POST',
body: <jsonbody>,
headers:{
'Content-Type': 'application/json',
'zsessionid': <my api key>
}
});