security: add X-DNS-Prefetch-Control header#2236
Open
Honey-pg wants to merge 5 commits into
Open
Conversation
Set X-DNS-Prefetch-Control to on so the application explicitly controls DNS prefetching behavior.
|
@Honey-pg is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
Replace page.evaluate fetch on about:blank with Playwright request + session cookie so relative API URLs resolve. Assert authenticated access returns JSON instead of requiring GitHub 200 with mock token.
Stub github-orgs, daily-focus, and dashboard-layout in dashboard E2E specs so placeholder Supabase env does not trigger resolveAppUser server errors during Playwright runs.
Add shared dashboard API mocks with correct streak/freeze payloads, relax middleware rate limits under PLAYWRIGHT_TEST, set PLAYWRIGHT_TEST in CI, use stable locators and scroll helpers, and run E2E with a single worker to avoid server contention.
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.
Summary
Set
X-DNS-Prefetch-Control: oninnext.config.mjsso the application explicitly controls DNS prefetching behavior.Closed #2016
Type of Change
Changes Made
X-DNS-Prefetch-Control: onto the global security headers innext.config.mjsHow to Test
npm run build(ornpm run dev) and start the appX-DNS-Prefetch-Control: onis present on responsesChecklist
npm run lintpasses locallynpm run type-check)Additional Notes
This is a security header addition only; no UI or API behavior changes. Note: an existing branch
security/x-dns-prefetch-controlusesoffinstead ofon— confirm which value is intended before merging.