ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Patch Request REST API Time Entry Issue


Article ID: 238510


Updated On:


Clarity PPM On Premise


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



Release : 15.8.1


Review the origin mentioned in the error. In this example, the 'http://localhostxxxxx' should be removed by issuing the following commands:

admin system-options -delete CORS_ALLOW_ORIGIN

admin system-options -add CORS_ALLOW_ORIGIN '<https://server>'

service stop start app