Get request works in POSTMAN, but doesn't in axios

Viewed 179

I am developin with Vue and Nuxt frameworks. All my fetch and get go through axios. Testing get request succeed in POSTMAN, but when i write in axios in returns opposite.

All I do in POSTMAN is passing 1 header to API:

key: Cookie value: session_coupons_id=some_value;

Response is positive.

When I try to pass same using axios in my Nuxt project it fails:

axios({
        url: 'https://some.com/api/v2/coupons/?page=1',
        method: 'get',
        headers: {
          Cookie: 'session_coupons_id=some_value',
        },
      })

Thank you. Ask questions for more detail

0 Answers
Related