enable cors cakephp

To enable CORS in CakePHP, you can follow these steps:

  1. Open the config/bootstrap.php file in your CakePHP project.
  2. Uncomment the line that says // header('Access-Control-Allow-Origin: *');.
  3. Change the line to header('Access-Control-Allow-Origin: *');.

That's it! This will enable CORS in your CakePHP application.