Commit b6997c9
committed
fix: clear portainer-api-key cookie during session bootstrap
Portainer sets its own 'portainer-api-key' cookie when a user creates an
API key. If this cookie exists with an expired or invalid key, Portainer
prefers it over our JWT token and auto-login fails.
Clear it alongside portainer_jwt and portainer.JWT during session bootstrap.1 parent db62edd commit b6997c9
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| |||
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
247 | 256 | | |
248 | 257 | | |
249 | 258 | | |
| |||
0 commit comments