Forums

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

Accessing confluence api in my javascript project

Sandesh Bafna
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!
March 11, 2020

I am trying to make a simple get req to Confluence search api.
I added authentication and X-Atlassian-Token in headers as directed but still, when I try to make an Axios req or fetch req through javascript to the Atlassian I get cors error failed to fetch.

Screenshot 2020-03-11 at 1.18.17 PM.png

1 answer

1 accepted

0 votes
Answer accepted
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 12, 2020

Hi @Sandesh Bafna ,

Welcome to the Atlassian Community.

This issue has already been discussed in the below threads:

 

Finally, for the future, please notice that this is not the best place to get help on development related questions. The right resources are liste in https://developer.atlassian.com/resources. Specifically:

 

Cheers,
Dario

Sandesh Bafna
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!
March 16, 2020

HI @Dario B 

Thanks for your response.

The links were helpful and could get the answer

Will make note of the link for discussion in future

Regards
Sandesh Bafna

Like Dario B likes this
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2020

You are very welcome @Sandesh Bafna . 

Since the answer helped I am accepting the answer so that this thread will be marked as resolved.

Have a nice day!

Dario

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events