filmov
tv
javascript - How to set header and options in axios?

Показать описание
#short
#javascript
#post
#axios
I use Axios to perform an HTTP post like this:
import axios from 'axios'
headers = {'header1': value}
Is this correct? Or should I do:
#javascript
#post
#axios
I use Axios to perform an HTTP post like this:
import axios from 'axios'
headers = {'header1': value}
Is this correct? Or should I do: