I'm using the following AJAX request to attempt to create a folder in the root folder:
$.ajax({
url: 'https://api.box.com/2.0/folders',
type: 'POST',
data: { name: name, parent: { id: 0} },
headers: {
'Authorization': 'Bearer ' + userToken,
'Access-Control-Allow-Origin': 'http://clientdomain.dev'
},
})
I've also added the clients testing domain to the CORS settings for the app, as well as successfully uploaded files with a modified version of this request.
What am I missing? I've clearly got the header, and it's valid as it worked for uploading.
Any suggestions or direction greatly appreciated

