Skip to content

Commit

Permalink
remove unnecessary and misleading header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dirkhh authored and wiedehopf committed Oct 14, 2023
1 parent acf6dcf commit fe7a522
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions html/planeObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe7a522

Please sign in to comment.