Trying to do simple fetch results in a CORS policy violation. Access-Control-Allow-Origin.
async function apiTest() {
console.log("Testing api");
let url: string = "https://api.warframe.market/v1/items";
let response = await fetch(url);
}
I can add the overwolf-extension://*
to the Nginx of the server I am requesting to, but I won’t have access to do that on any other server.
Is there a way I could go about disabling CORS inside of the application? It would make development a lot easier on my end, otherwise. What is the best way to go about sending requests?
I messed around and got requests working through a plugin, but this seems to be a really hacky/bad workaround.