remove unnecessary and misleading header

This has nothing to do with CORS. There is no need for this header.

This should address a change requested by Ramon (@kx1t)

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel
2023-08-28 13:17:44 -07:00
committed by Matthias Wirth
parent acf6dcf1dc
commit fe7a522a64

View File

@@ -2913,14 +2913,12 @@ PlaneObject.prototype.setFlight = function(flight) {
// grab up to the first 100 callsigns and leave the rest for later
var route_check_array = g.route_check_array.slice(0,100);
g.route_check_array = g.route_check_array.slice(100);
jQuery.ajax({
type: "POST",
url: routeApiUrl,
contentType: 'application/json; charset=utf-8',
dataType: 'json',
data: JSON.stringify({ 'planes': route_check_array}),
headers: { "Access-Control-Allow-Origin": "*" }})
data: JSON.stringify({ 'planes': route_check_array})})
.done((routes) => {
g.route_check_in_flight = false;
if (debugAll) {