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

239
Views
cors issue with fetch api

I am calling an API with isomorphic-fetch with Fetch API. I was getting CORS issue as API was on different domain (this works in production).

To develop locally, I ran chrome browser in non-secure mode and added { credentials: "include" } as part of request headers so that cookies will be sent along with request.

my dev domain is localhost.abc.com:8080 and api is on myapi.abc.com, although i am getting 200 OK response, i am unable to read the response because of below error:

The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'

This is where I have started missing jQuery AJAX call in relation to the Fetch API.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try setting Access-Control-Allow-Origin to specific domain you want to whitelist, eg. localhost.abc.com:8080 in your case.

about 4 years ago · Santiago Trujillo Report
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!