- fixed CORS issue by using Accept header than Content-Type header.