- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Getting below error even though appropriate headers are set
Access to fetch at '<workfront url>/attask/api/v12.0/upload' from origin 'https://localhost:9080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
headers being set:
headers: {
'apiKey': '<key>',
'Content-Type': 'multipart/form-data',
'Access-Control-Allow-Origin': '*'
}
Views
Replies
0 Likes
Total Likes