enable cors cakephp
To enable CORS in CakePHP, you can follow these steps:
- Open the
config/bootstrap.php
file in your CakePHP project. - Uncomment the line that says
// header('Access-Control-Allow-Origin: *');
. - Change the line to
header('Access-Control-Allow-Origin: *');
.
That's it! This will enable CORS in your CakePHP application.