I'm making a page template mvt:call to the UPS api.
Given the code below. What goes in headers="???????"
The API specs say
Use HTTP/s POST.
The JSON API expects the following HTTP headers:
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Methods: POST
Access-Control-Allow-Origin: *
Content-Type: application/json
Given the code below. What goes in headers="???????"
The API specs say
Use HTTP/s POST.
The JSON API expects the following HTTP headers:
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Methods: POST
Access-Control-Allow-Origin: *
Content-Type: application/json
Code:
<mvt:call action = "g.url" method = "POST" content-type = "'application/json'" headers = "??????"> <mvt:assign name="g.return" value="g.return $ s.callvalue" /> </mvt:call>
Comment