@@ -29,6 +29,7 @@ export default class FetchUtil {
2929 'Accept' : 'application/json' ,
3030 'Content-Type' : 'application/json'
3131 } ,
32+ credentials : "same-origin" ,
3233 body : JSON . stringify ( payload )
3334 } )
3435 . then ( FetchUtil . checkStatus )
@@ -75,6 +76,7 @@ export default class FetchUtil {
7576 'Accept' : 'application/json' ,
7677 'Content-Type' : 'application/json'
7778 } ,
79+ credentials : "same-origin" ,
7880 body : JSON . stringify ( payload )
7981 } )
8082 . then ( FetchUtil . checkStatus )
@@ -112,7 +114,8 @@ export default class FetchUtil {
112114 method : settings . method ,
113115 headers : {
114116 Accept : 'application/json'
115- }
117+ } ,
118+ credentials : "same-origin"
116119 } )
117120 . then ( FetchUtil . checkStatus )
118121 . then ( FetchUtil . parseJSON )
@@ -157,7 +160,8 @@ export default class FetchUtil {
157160 method : settings . method ,
158161 headers : {
159162 Accept : 'application/json'
160- }
163+ } ,
164+ credentials : "same-origin"
161165 } )
162166 . then ( FetchUtil . checkStatus )
163167 . then ( FetchUtil . parseJSON )
0 commit comments