Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Edited

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

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!
Nov 09, 2023

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events