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

164
Views
PHP Access-Control-Allow-Origin is not working for only POST request
//at server side
header("Access-Control-Allow-Origin: https://example.com");
header("Access-Control-Allow-Methods: GET, POST");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept")

//at client side JS
$.ajax({
        url: source.API_HOST_ADDR+"api/lms/state",
        method:"POST",
        data:{'country_id':1,'apikey':source.API_KEY},
        dataType: "json",
        crossDomain: true,
        success: function(data){    
          console.log(data);
        }
   });## Heading ##

//error: No 'Access-Control-Allow-Origin' header is present on the requested resource
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!