I think you have to add code to handle OPTIONS the same way is described in
the manual for GET, POST, PUT, DELETE.
In my case it worked just adding this:
def OPTIONS(*args, **vars):
return dict()
El viernes, 10 de mayo de 2013, 13:47:05 (UTC+2), Daniel Gonzalez escribió:
>
> Hi,
>
> I have implemented a RESTful api in web2py which handle the usual GET,
> POST, PUT, DELETE. (using @request.restful())
> Is there a standard mechanism in web2py to implement OPTIONS requests?
>
> Thanks,
> Daniel
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/27d52222-90ce-43e7-82dd-2be17b9fb9f8%40googlegroups.com.