axios script cdn code example

Example 1: axios cdn

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>

Example 2: axios cdn

<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>

Example 3: AXIOS CDN

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>

Example 4: axios cdn

const FormData = require('form-data');
 
const form = new FormData();
form.append('my_field', 'my value');
form.append('my_buffer', new Buffer(10));
form.append('my_file', fs.createReadStream('/foo/bar.jpg'));

axios.post('https://example.com', form, { headers: form.getHeaders() })