I am not yet succeeding in making CORS requests work in my project, basically a Play server and an AngularJS web client.
Since there are many variables to take into consideration, I would like first to be sure that everything is ok at least on the Play server side. But, my fault, the Play 2.4 documentation on CORS is not enough to help me figure out a concrete use case.
Two basic questions:
- Creating a Filters class in the root of your project (see docs): where to place the provided code? Not sure what the "root of your project" is, I added the class to my controller in
app/controllers/Mycontr.scala - The points described in the documentation are enough? Or other parts need to be touched as well, for example routing in
app/conf/routes
Tried to find a complete tutorial, but had no luck for Play 2.4