Skip to content

Commit

Permalink
Added changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimck committed Oct 25, 2024
1 parent 7da7477 commit f5f4be8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/flat-beds-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"create-ima-app": minor
"@ima/core": minor
---

Added new settings `validateCookies` to enable/disable cookie validation. It validates cookie options and request url before saving cookie or sending it to the server. This means that path, subdomain and secure options must match between the request url and the cookie, otherwise the cookie is not saved or sent.
2 changes: 1 addition & 1 deletion packages/create-ima-app/template/ts/app/config/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const initSettings: InitSettingsFunction = (ns, oc, config) => {
'Accept-Language': config.$Language,
},
},
validateCookies: true, // Validate cookies when parsing from Set-Cookie header and when sending cookies from the server.
validateCookies: false, // Validate cookies when parsing from Set-Cookie header and when sending cookies from the server.
cache: true, // if value exists in cache then returned it else make request to remote server.
},
cacheOptions: {
Expand Down

0 comments on commit f5f4be8

Please sign in to comment.