Skip to content

Conversation

@codeunia-dev
Copy link
Owner

@codeunia-dev codeunia-dev commented Nov 24, 2025

Add Cross-Origin-Resource-Policy and Cross-Origin-Embedder-Policy headers to next.config.ts.

Authored by: @akshay0611

Summary by CodeRabbit

  • Chores
    • Updated cross-origin resource policies for improved compatibility.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Nov 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
codeunia Building Building Preview Comment Nov 24, 2025 5:04am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 24, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Added two HTTP response headers to the Next.js dynamic pages caching rule: Cross-Origin-Resource-Policy: cross-origin and Cross-Origin-Embedder-Policy: unsafe-none. These headers control cross-origin resource sharing and embedding policies for cached responses.

Changes

Cohort / File(s) Summary
Configuration Updates
next.config.ts
Added Cross-Origin-Resource-Policy and Cross-Origin-Embedder-Policy HTTP response headers to the dynamic pages caching rule

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • PR #360: Also modifies next.config.ts dynamic-pages caching rules; worth checking for potential conflicts or complementary changes

Poem

🐰 Two headers hop into the cache so bright,
Cross-origin walls tumble left and right,
Safe embeddings dance in headers true,
Configuration blessed, the web flows through! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/staledata

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e99321b and d315332.

📒 Files selected for processing (1)
  • next.config.ts (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codeunia-dev codeunia-dev merged commit 5cab5ea into main Nov 24, 2025
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants