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

Can my atlassian cloud addon send a request (JS, ajax) to my addon server?

Steffen Stamprath
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2015

Can my atlassian cloud addon send a request (JS, ajax) to my addon server?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Einar Pehrson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 5, 2015

Yes.

The Same-Origin Policy poses no restriction, it only compares the origin of your iframe to that of the URL you are requesting.

The host application doesn't specify the sandbox attribute on the iframe, and as such doesn't impose any additional restrictions on what you can do.

Note however that you cannot use the request module in our JavaScript API to make AJAX requests back to your add-on.

1 vote
Mike Staas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 5, 2015

If your add-on exposes one of the modules that render an iframe in the host product (e.g. Panel or Page) you can include whatever JavaScript you like in the content your add-on server responds with for that module URL.

E: See the Connect documentation here: https://developer.atlassian.com/static/connect/docs/latest/modules/

TAGS
AUG Leaders

Atlassian Community Events