Umbau CORS auf "domain"/api/job
This commit is contained in:
parent
3e5c8d26a8
commit
82700c4689
|
|
@ -1,12 +1,14 @@
|
||||||
|
|
||||||
GetMarkerData();
|
GetMarkerData();
|
||||||
|
|
||||||
|
const cors = require('cors')
|
||||||
|
app.get('pai')
|
||||||
let freight;
|
let freight;
|
||||||
|
|
||||||
async function GetMarkerData() {
|
async function GetMarkerData() {
|
||||||
try {
|
try {
|
||||||
// holt Daten vom Gateway → das reicht die Worker-Antwort direkt durch
|
// holt Daten vom Gateway → das reicht die Worker-Antwort direkt durch
|
||||||
const res = await fetch("https://datagateway.danielnagel.at/api/job", {
|
const res = await fetch("https://map.arenos.danielnagel.at/api/job", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user