Groups
Groups
Sign in
Groups
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
Handling OPTIONS request in a web2py RESTful API
51 views
Skip to first unread message
Daniel Gonzalez
unread,
May 10, 2013, 7:47:05 AM
5/10/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
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
mcamel
unread,
Nov 27, 2019, 8:27:54 AM
11/27/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
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
()
Reply all
Reply to author
Forward
0 new messages