-1

Access to XMLHttpRequest at 'http://localhost./panel/app/funcs/user/normal_user_funcs.php' from origin 'http://localhost' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

js.js

php.php

mplungjan
  • 169,008
  • 28
  • 173
  • 236

1 Answers1

-2

replace your header with the following in normal_user_funcs.php :

header('Access-Control-Allow-Headers: *'); 
Hazik Arshad
  • 456
  • 2
  • 8
  • Not work. Access to XMLHttpRequest at 'http://localhost./panel/app/funcs/user/normal_user_funcs.php' from origin 'http://localhost' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. – Mustafa Hasırcıoğlu Aug 03 '22 at 12:24