Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

247
Views
API doesn't support cors. How do I fetch?

I'm trying to fetch data from an API that DOES NOT support CORS.

fetch("https://app.pixelencounter.com/api/basic/monsters/random", {
    headers: {
        Content-Type": 'image/svg+xml;',
    }})
    .then(response => {
            return response.text()
    })
    .then((data) => {
            console.log("Data:", data);
    });

But keep getting the error cors is not supported. How would I disable fetching with cors? I actually don't want to get cors working, cause it's not supported by the server as mentioned here I tried mode: 'no-cors' but like this I can't access the response cause it's type is opaque.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!