The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Forbidden 403 from "POST" with https://trello.com/1/cards/{idCard}/actions/comments

Joel
November 9, 2023

Following codes are executed in a content script from a chome extension.
My intention is to add a card comment when the user clicks the Enter button in the Plus S/E Table.

var url = "https://trello.com/1/cards/" + idCard + "/actions/comments?text=" + encodeURIComponent(comment) + "&token=";
...
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
...
sendExtensionMessage(
{ method: "queryTrelloToken" },
function (response) {
url = url + response.cookie_value;
xhr.open("POST", url);
xhr.send();
});

Here is the full content of url: 
https://trello.com/1/cards/JMX40Iwl/actions/comments?text=plus!%202.05%2F2.05%20Testing%20with%20S%2FE%20table%20entry&token=53e4a420f5f7adc461610c0c%2FATTSIx2HaOUy81FJhvRkck0A3ld0VGaSsmVlboyLEIbmvRWxI4rTfMMZiD8y0kjvrJNO94B76928

After executing xhr.send(), the console shows a 403 (forbidden) status.
What is the correct syntax to execute the add card comment action in the content script?
Plus SE Table.pngPOST with 403 (forbidden).png 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Q xin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 9, 2023
TAGS
AUG Leaders

Atlassian Community Events