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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.