AXIOS 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

// Axios CDN minified version 0.21.1
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.21.1/axios.min.js" integrity="sha512-bZS47S7sPOxkjU/4Bt0zrhEtWx0y0CRkhEp8IckzK+ltifIIE9EMIMTuT/mEzoIMewUINruDBIR/jJnbguonqQ==" crossorigin="anonymous"></script>

// axios is promise based HTTP client for the browser and node.js

Example 4: AXIOS CDN

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

Example 5: 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() })

Example 6: axios cdn

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