Patch Request REST API Time Entry Issue "Access to XMLHttpRequest has been blocked by CORS policy"
searchcancel
Patch Request REST API Time Entry Issue "Access to XMLHttpRequest has been blocked by CORS policy"
book
Article ID: 238510
calendar_today
Updated On: 10-23-2023
Products
Clarity PPM On PremiseClarity PPM SaaS
Issue/Introduction
The company is using the call PATCH for time entries. There is a CORS error:
Access to XMLHttpRequest at 'https://server/ppm/rest/v1/timesheets/15441873/timeEntries/43311448' from origin 'http://localhostxxxxx' 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
Resolution
Review the origin mentioned in the error and address accordingly