File tree 1 file changed +6
-3
lines changed
frontend/javascript/modules
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export default class NewYear {
31
31
warningText : "This will clear active members and room assignments!" ,
32
32
successText : "Data successfully cleared." } , ( ) => {
33
33
fetch ( this . endpoints . housing , {
34
- method : 'DELETE'
34
+ method : 'DELETE' ,
35
+ credentials : "same-origin"
35
36
} )
36
37
. then ( $ ( '#new-clear' ) . fadeOut ( ( ) => {
37
38
$ ( "#new-current" ) . fadeIn ( ) ;
@@ -45,7 +46,8 @@ export default class NewYear {
45
46
} else if ( this . uid ) {
46
47
if ( $ ( '#rem-' + this . uid ) . is ( ":visible" ) ) {
47
48
fetch ( this . endpoints . current + this . uid , {
48
- method : 'DELETE'
49
+ method : 'DELETE' ,
50
+ credentials : "same-origin"
49
51
} ) . then ( ( ) => {
50
52
$ ( '#rem-' + this . uid ) . hide ( ) ;
51
53
$ ( '#add-' + this . uid ) . show ( ) ;
@@ -58,7 +60,8 @@ export default class NewYear {
58
60
} ) ;
59
61
} else {
60
62
fetch ( this . endpoints . current + this . uid , {
61
- method : 'POST'
63
+ method : 'POST' ,
64
+ credentials : "same-origin"
62
65
} ) . then ( ( ) => {
63
66
$ ( '#add-' + this . uid ) . hide ( ) ;
64
67
$ ( '#rem-' + this . uid ) . show ( ) ;
You can’t perform that action at this time.
0 commit comments