Repository navigation
Conversation
…(Lovable __dpl) as info, not an HttpOnly warning #1378 Signed-off-by: Nik Cubrilovic <[email protected]>
… claim; CHANGELOG under Unreleased #1378 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/cookie-flags-platform-1378
branch
from
October 30, 2026 21:10
5fcb3fa to
05db32b
Compare
…d; evidence wording #1378 Signed-off-by: Nik Cubrilovic <[email protected]>
This was referenced Oct 30, 2026
Merged
Contributor
Author
|
Landed in v0.0.146 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1378.
security/cookie-flagswarnedcookie-httponlyfor Lovable's own__dplcookie on 95% of Lovable sites. The platform sets it, the owner can't change it, and it holds no session.packages/rules/src/security/platform-cookies.ts: exact cookie name, platform, docs link. It starts with__dpl(Lovable); each entry also records its evidence, because Lovable does not document the cookie (the docs link is the platform's docs home).cookie-httponly-platform, worded as "commonly carried by Lovable-hosted sites; the platform does not document it" (evidence: 1,013 of 1,066 Lovable sites in the 35k batch, the only cookie), not as a platform fact. Nocookie-httponlywarning for it.session=<random>,__dpl2and__DPLstill warn). Secure, SameSite andSameSite=Noneresults are unchanged.Tests (
packages/rules/tests/cookie-flags.test.ts, 7 new):__dplalone gives info and no warn or fail; a session cookie beside__dplwarns naming only the session cookie; a session cookie alone warns; Secure/SameSite/None results for__dplunchanged; HttpOnly set adds no platform info; the list entries each have a platform and an https docs link; exact-name matching. Gates: rules tests (cookie-flags, private-target-skip), tsgo in packages/rules, oxlint,make validate.Docs:
docs/rules/security/cookie-flags.mdx(new check and an "exempt from the HttpOnly check" section). CHANGELOG under Unreleased / Fixed. Skill: no change needed.nik
The exemption is by exact name on any site (noted in the docs). CHANGELOG bullet is under Unreleased and will conflict with #1380's at the same line: whoever merges second rebases.