Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add samesite cookie parameter support for v157 #3972

Merged
merged 1 commit into from Sep 23, 2020

Conversation

drbyte
Copy link
Member

@drbyte drbyte commented Sep 23, 2020

Sets the default samesite handling to lax.
NOTE: This only works on sites using SSL. If you're not using SSL then this is pointless (and you won't be able to do secure payments).

If you need to override the default of lax mode (as some payment redirections will require), create a file named /includes/extra_configures/samesite_cookie.php containing the following:

<?php
// -----
// Samesite cookie needs to be none when doing offsite payment gateway redirects
//
define('COOKIE_SAMESITE', 'none');

This same change should work on Zen Cart v1.5.5 and 1.5.6.

If you need to override the default of `lax` mode,
create a file named `/includes/extra_configures/samesite_cookie.php` containing the following:

```php
<?php
// -----
// Samesite cookie needs to be none when doing offsite payment gateway redirects
//
define('COOKIE_SAMESITE', 'none');
```
@drbyte drbyte merged commit ad35e21 into zencart:v157 Sep 23, 2020
@drbyte drbyte deleted the samesite-157 branch September 23, 2020 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant