Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How to download repo via react app using api?

DM I'm New Here Jan 05, 2022

I want to download the repo as a zip file in react app using API.currently it giving CORS error.

3 answers

0 votes
Pramodh M Community Leader Jan 08, 2022

Hi @DM 

If you are referring to Pages, here's a thread

https://community.atlassian.com/t5/Confluence-questions/Best-approach-to-download-all-confluence-pages-in-a-space-and/qaq-p/1529389

If you are referring to the repo in Bitbucket, here's an API

https://community.atlassian.com/t5/Bitbucket-questions/How-to-download-repository-as-zip-file-using-the-API/qaq-p/862113

To mitigate CORS error, reduce using Access-Control-Allow-Origin parameter

Thanks,
Pramodh

0 votes

Could you explain the question more, please?  What has it got to do with Confluence?

What are you actually trying to achieve?

0 votes

Hi! 

is this related to the Confluence question?

Maybe the next thread will help you https://community.developer.atlassian.com/t/plugin-development-and-cors-problem/49002

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

43,960 views 33 137
Read article

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