Skip to content

Commit

Permalink
bump axios version to get rid of a bug with its interceptors and flag…
Browse files Browse the repository at this point in the history
… auth cookie secure when on https
  • Loading branch information
nepcore committed Jun 27, 2022
1 parent 3e8417e commit 2483367
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Expand Up @@ -12,7 +12,7 @@
"@mdi/font": "^5.9.55",
"ansi_up": "^5.0.0",
"apexcharts": "^3.23.1",
"axios": "^0.21.2",
"axios": "^0.21.3",
"core-js": "^3.14.0",
"cron-parser": "^3.5.0",
"cron-validator": "^1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion client/src/plugins/api/index.js
Expand Up @@ -22,7 +22,7 @@ class ApiClient extends EventEmitter {
}

updateCookie (token) {
Cookies.set('puffer_auth', token, { sameSite: 'strict' })
Cookies.set('puffer_auth', token, { sameSite: 'strict', secure: window.location.protocol === 'https:' })
}

saveLoginData (token, scopes = [], silent = false) {
Expand Down

0 comments on commit 2483367

Please sign in to comment.