Having some unpleasant problems causing AJAX calls, simply because almost every browser these days makes an OPTIONS call on the server before the actual AJAX call.
Since I use Play! 2.0, is there any easy way to make a response using a template for any route using the OPTIONS method?
For example, on my routes, you can do something like:
OPTIONS /* controllers.Options.responseDef
Yes, I know the new Play! does not have a built-in template, but there must be a solution for this, since all browsers increasingly call OPTIONS before calling AJAX.
source
share