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

220
Views
Getting "No 'Access-Control-Allow-Origin' header is present on the requested resource" even after defining header

I am attempting to verify recaptcha v3 using js and axios and I kept getting a CORS error. After looking up the 'Access-Controll-Allow-Origin' error, I read that you simply had to include either '*' or the site itself in the header.

const submitData = (token: any) => {
  axios
    .post(`https://www.google.com/recaptcha/api/siteverify`, {
      headers: {
        "Access-Control-Allow-Origin": "*",
      },
      params: {
        response: token,
        secret: SECRET,
      },
    })
    .then((res) => {
      setResponse(res.data);
    });
};

Above is my attempt to add the wildcard header. I keep receiving the "No 'Access-Control-Allow-Origin' header is present' error.

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!