Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4745 Visualizzazioni

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)
Avatar
Abbandona
Risposta migliore

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

ex

@http.route(['/api/XXX/auth/token'], methods=['POST'], type='json', csrf=False, auth="public")
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 15
2929
0
mar 15
4399
1
mar 15
8243
1
mar 15
5389
2
lug 25
1036