Wie füge ich Access-Control-Allow-Origin hinzu?

Ich erhalte die folgende Fehlermeldung, wenn ich meine Webservice-Methode aufrufe.

Origin http://localhost:4165 is not allowed by Access-Control-Allow-Origin.

Wenn ich net beziehe bekomme ich lösung wie hinzufügenAccess-Control-Allow-Origin Ich weiß nicht, wo ich das hinzufügen soll. Mein Drehbuch lautet:

 $(document).ready(function () {
        $.ajax({
            type: "Post", dataType: "json", contentType: "application/json; charset=utf-8",
            url: "http://localhost:63384/ListWebService.asmx/HelloWorld", success: function (data) { alert(data.d); }, error: function (request, status, error) {
                alert(request.responseText);
            }
        });
    });

Und meine Webservice-Methode ist:

[WebMethod]
    public string HelloWorld()
    {
        return "Hello User";
    }

Antworten auf die Frage(1)

Ihre Antwort auf die Frage