I'm using following node.js api Server: node-perfectapi
I opened an issue here
I try to call the perfect api over javascript. It's wokring with jQuery.ajax(), but I want to call it from angular.
Chrome always rejects the request and transform the method to "OPTIONS", probably because I cant set the the following headers for the repsonse:
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'origin, x-requested-with, content-type, accept',
'Access-Control-Allow-Method': 'GET, POST, OPTIONS, DELETE'.
Is there a way to do it?
Console

Angular request

jQuery Request

the webserver already serves my javascript files with these custom headers.