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

150
Views
'CORS policy' in apache

laravel + php + apache + win7

error :

Access to XMLHttpRequest at 'http://api.demo.com' from origin 'http://demo.com' has been blocked by CORS policy: Request header field pragma is not allowed by Access-Control-Allow-Headers in preflight response.

config apache:


<VirtualHost *:80>

     DocumentRoot "G:/xampp/htdocs/demo/public"
     ServerName api.demo.com
     Header always set Access-Control-Allow-Origin "*"
     Header always add Access-Control-Allow-Methods "GET, POST"
     Header always set Access-Control-Allow-Headers "Origin,XMLHttpRequest, X-Requested-With, Content-Type, Authorization,X-Custom-Header"
     Header always set Access-Control-Allow-Credentials "true"

</VirtualHost>

but it still makes mistakes.why?

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