Open jrosell opened 3 months ago
I guess it could be helpful to have some function to be sure that we can get the cookie value securely.
When restarting the app sometimes I see the value of the string containing devOpifex/scilis and I did this:
errors <- "" cookie <- req$cookie[[cookie_errors]] if (is.character(cookie) && cookie != "" && length(cookie) > 0 && !str_detect(cookie, "devOpifex/scilis")) { errors <- req$cookie[[cookie_errors]] res$cookie(name = cookie_errors, value = "") }
I imagine something like this:
errors <- "" if (scilis::is_secure(req, cookie_errors)) { errors <- req$cookie[[cookie_errors]] res$cookie(name = cookie_errors, value = "") }
Not sure why I never thought of that
And also make the change from devOpifex to ambiorix-web, I guess.
I guess it could be helpful to have some function to be sure that we can get the cookie value securely.
When restarting the app sometimes I see the value of the string containing devOpifex/scilis and I did this:
I imagine something like this: