File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ const _axios = axios.create(config)
27
27
_axios . interceptors . request . use (
28
28
function ( config ) {
29
29
// Do something before request is sent
30
- setAuthenticationHeader ( config . headers . common )
30
+ if (
31
+ config . noAuthorization === undefined ||
32
+ config . noAuthorization === false
33
+ ) {
34
+ setAuthenticationHeader ( config . headers . common )
35
+ }
31
36
return config
32
37
} ,
33
38
function ( error ) {
Original file line number Diff line number Diff line change @@ -89,7 +89,10 @@ export default class ProfileUpdate extends Vue {
89
89
this .phoneNumber = this .user .phone_number
90
90
91
91
if (this .user .avatar !== null ) {
92
- Vue .axios .get (this .user .avatar )
92
+ Vue .axios .get (this .user .avatar , {
93
+ // @ts-expect-error this is our custom config
94
+ noAuthorization: true
95
+ })
93
96
.then (res => {
94
97
if (this .user .avatar !== null ) {
95
98
const parts = this .user .avatar .split (' /' )
You can’t perform that action at this time.
0 commit comments