Follow
Antinormal
middleware
Implementing cross-origin resource sharing (CORS) using middleware in CakePHP…
I worked on a project recently where I had to allow XMLHttpRequests from a different domain. I initially thought about adding the necessary Access-Control headers...