You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Im just trying to do a simple request to confluence cloud but getting an CORS error
My request:
axios.get('https://<company>.atlassian.net/wiki/rest/api/content', {
headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Headers': 'Content-Type,Authorization',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'POST, PUT, PATCH, GET, DELETE, OPTIONS',
'Access-Control-Allow-Credentials': true,
'X-Atlassian-Token': 'nocheck',
},
auth: {
username: <user>,
password: <pass>
}
});
My error:
Also I was trying to find Confluence Allow List, but it seems deprecated or I just missing something.
@Ilja Dikteriov Welcome to the Atlassian community
Please follow the documentation here to properly construct your rest api call https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-get
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.