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
@Ilja Dikteriov can you accept this answer to help others?
It looks like you're new here. Sign in or register to get started.