Response For Preflight Is Invalid In Angular
I am trying to perform test using apiary api as the following: $scope.createAsset = function () { $http({ method: 'POST', url: 'http://polls.apiblueprint.org/createStory'
Solution 1:
You have a misunderstanding of CORS: The Access-Control-Allow-Origin
header comes from the server, not the client. It's the server that decides whether to allow a cross-origin call.
There's nothing you can do in your client-side code to enable a cross-origin call if the server doesn't support it.
Post a Comment for "Response For Preflight Is Invalid In Angular"