Unable to complete task through REST API

I am using spring boot 2, flowable 6, I am not able to complete the tasks through rest api provided by flowable.

Request:

POST http://rest-admin:test@0.0.0.0:8080/process-api/runtime/tasks/<task_id>
{
“action” : “complete”,
“variables”: [],
“transientVariables”: []

}

Response:
{
“timestamp”: “2018-11-08T10:27:00.304+0000”,
“status”: 403,
“error”: “Forbidden”,
“message”: “Forbidden”,
“path”: “/process-api/runtime/tasks/474b3953-e1c1-11e8-8ba2-2acf987a8757”
}

Figured the issue. It was because of cross origin resource filter.