Skip to content

Commit

Permalink
Add default header.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhsianturi committed Feb 15, 2020
1 parent c3eb120 commit cadbac8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/js/axios-instance.js
Expand Up @@ -2,6 +2,8 @@ import axios from 'axios';

const instance = axios.create();

instance.defaults.headers.common['Accept'] = 'application/json';

instance.interceptors.request.use((config) => {
config.timing = {
start: performance.now(),
Expand Down

0 comments on commit cadbac8

Please sign in to comment.