It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Accessing confluence api in my javascript project

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 Mar 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

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 Mar 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
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

2,116 views 4 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you