File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11
22dist /
3+ * .exe
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ function backgroundUnread(){
144144 if ( document . getElementById ( 'msgTrigger' ) ) {
145145 return ;
146146 }
147- fetch ( baseURL + '/checkunread/' , { method : 'HEAD' } ) . then ( r => {
147+ fetch ( baseURL + '/checkunread/' , { method : 'HEAD' , credentials : 'include' } ) . then ( r => {
148148 if ( r . status === 200 ) {
149149 const mail = document . getElementById ( 'mail' ) ;
150150 const mailcl = mail . classList ;
@@ -156,12 +156,13 @@ function backgroundUnread(){
156156}
157157
158158function get ( url ) {
159- return fetch ( baseURL + url , { method : 'GET' } ) ;
159+ return fetch ( baseURL + url , { method : 'GET' , credentials : 'include' } ) ;
160160}
161161
162162function pst ( url , json ) {
163163 return fetch ( baseURL + url , {
164164 method : 'POST' ,
165+ credentials : 'include' ,
165166 headers : {
166167 'Accept' : 'application/json' ,
167168 'Content-Type' : 'application/json' ,
You can’t perform that action at this time.
0 commit comments