Umbau CORS auf "domain"/api/job
This commit is contained in:
parent
3e5c8d26a8
commit
82700c4689
|
|
@ -1,12 +1,14 @@
|
|||
|
||||
GetMarkerData();
|
||||
|
||||
const cors = require('cors')
|
||||
app.get('pai')
|
||||
let freight;
|
||||
|
||||
async function GetMarkerData() {
|
||||
try {
|
||||
// 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",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user