ajax (json ではなく) を介して別のドメインにフォームを送信する必要がありますが、エラーが発生し続けます
XMLHttpRequest cannot load http://some.other.domain/. Origin http://localhost:8081 is not allowed by Access-Control-Allow-Origin.
これを「修正」する方法はありますか?
$.ajax({
type: "POST",
dataType: "text/html",
data: $("#surveyForm").serialize(),
crossDomain: true,
url: "http://some.other.domain",
processData: false,
error: function (jqXHR, textStatus, errorThrown) {
},
success: function (response) {
}
});