Skip to Content
Menu
This question has been flagged
1 Atsakyti
4727 Rodiniai

Standard behavior:
Allowed only methods: POST, if CORS
Expected behavior:
I want to override the method set_default(self, template=None, qcontext=None, uid=None)
To allow such methods as DELETE, PUT, PATCH etc.,
But when I try to use, for example, method PUT -  nothing happens.
My Case:

@http.route(['/api/v1/detail'], type='json', auth="public", methods=['PUT', 'OPTIONS'], cors='*', csrf=False)
Portretas
Atmesti
Best Answer

Try with ['POST'] methods or whatever you want

ex

@http.route(['/api/XXX/auth/token'], methods=['POST'], type='json', csrf=False, auth="public")
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 15
2928
0
kov. 15
4393
1
kov. 15
8238
1
kov. 15
5387
2
liep. 25
998