Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. await axios.post(OPENROUTE_URL, JSON.stringify(cords),{
  2.                 headers : {
  3.                     "Access-Control-Allow-Headers": "Origin",
  4.                     "X-Requested-With" : "XMLHttpRequest",
  5.                     'Content-Type' : 'application/geo+json',
  6.                     'Accept': 'application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8',
  7.                     'Authorization': '5b3ce3597851110001cf62480134a9c2d5bc4bfcabb39ce9cb687b4d'
  8.                 }
  9.             })
  10.             .then((response) => {
  11.                 this.res = response
  12.             })
  13.             .catch((error) => {
  14.                 this.res = error
  15.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement