File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/content/docs/fr/guides/upgrade-to Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ export const onRequest = defineMiddleware(async (context, next) => {
723
723
if (payload ) {
724
724
const { actionName, actionResult } = payload .json ();
725
725
setActionResult (actionName , actionResult );
726
- context .cookies .delete (' ACTION_PAYLOAD' );
726
+ context .cookies .delete (' ACTION_PAYLOAD' , { path: ' / ' } );
727
727
return next ();
728
728
}
729
729
@@ -735,6 +735,11 @@ export const onRequest = defineMiddleware(async (context, next) => {
735
735
context .cookies .set (' ACTION_PAYLOAD' , {
736
736
actionName: action .name ,
737
737
actionResult: serializeActionResult (actionResult ),
738
+ }, {
739
+ path: ' /' ,
740
+ httpOnly: true ,
741
+ sameSite: ' lax' ,
742
+ maxAge: 60
738
743
});
739
744
740
745
if (actionResult .error ) {
You can’t perform that action at this time.
0 commit comments