Skip to content

CORS with angularjs #1667

@wilifabrizio

Description

@wilifabrizio

Hello, I have the following problem with angularjs

XMLHttpRequest cannot load http://159.203.66.78:5000/viaroute?loc=-29.15199,-59.65164&loc=-29.118311,-59.6552098. Request header field Authorization is not allowed by Access-Control-Allow-Headers.

code angularjs:

$http.get('http://159.203.66.78:5000/viaroute?loc=-29.15199,-59.65164&loc=-29.118311,-59.6552098').success(function(response){
console.log(response);
});

as I add the CORS?

sorry, my English is bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions