Registry Mirror
Skip to content

Conversation

@Zivxx

@Zivxx Zivxx commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

What this does

The Nexus PDP feature parity page now says that Nexus PDP sends no cross-origin resource sharing (CORS) headers.

  • A new comparison row, "Cross-origin requests from browsers (CORS)": the container PDP Yes, Nexus PDP No.
  • A new note, "Cross-origin requests on Nexus PDP":
    • Nexus PDP serves backend services, not browsers, so it adds no CORS layer on any route.
    • A browser calling a PDP directly would have to hold the environment's Nexus PDP API key, which every user of the page could then read.
    • Call Nexus PDP from your backend.
    • The container PDP allows any origin by default: it builds on OPAL, whose opal_common middleware adds Starlette's CORSMiddleware with ALLOWED_ORIGINS defaulting to ["*"]. A frontend that calls the container PDP directly today should move those calls to its backend before switching.

🤖 Generated with Claude Code

…from your backend

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 11, 2026 13:22
@linear-code

linear-code Bot commented Nov 11, 2026

Copy link
Copy Markdown

PER-18942

@netlify

netlify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for permitio-docs ready!

Name Link
🔨 Latest commit 52c58ab
🔍 Latest deploy log https://app.netlify.com/projects/permitio-docs/deploys/6af46bfde4b8c44c24f70197
😎 Deploy Preview https://deploy-preview-690--permitio-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@omer9564 omer9564 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content is correct. I checked both claims against the code, and the new row's link reaches the new note. One thing to fix before merge: this is a public repo, and the PR's title, branch and description carry internal details.

Before merge (public repo):

  • The title starts with an internal ticket key. A squash merge would put it in the public master history. Please drop the prefix so the title is only docs(nexus-pdp): Nexus PDP sends no CORS headers; call it from your backend.
  • The branch name carries the same key. A neutral name such as ziv/nexus-no-cors avoids it. Renaming the branch is optional once the title is fixed, since the branch is deleted at merge.
  • The description names a private repository and its internals (its crate names and a PR number there), and opens with the ticket key. It's enough to say that Nexus PDP adds no CORS layer on any route, and that the container PDP gets its CORS middleware from OPAL (opal_common, which is open source).
  • The integration bot has already posted its link-back comment here. Whether to delete it is the maintainers' call.

Checked:

  • The container PDP allows any origin by default. The PDP builds on OpalClient, whose app setup calls opal_common.middleware.configure_middleware. That adds Starlette's CORSMiddleware with ALLOWED_ORIGINS (default ["*"]), credentials allowed, and all methods and headers.
  • Nexus PDP sends no CORS headers. There's no CORS layer or Access-Control-Allow-* header anywhere in Nexus PDP's source, either on its main branch or on the open branches that touch it.
  • The text: "Nexus PDP API key" is the term the page already uses (line 16). The #cors anchor matches the row's link. The advice to move direct browser calls to a backend before switching is the right one, given the container PDP's default.

No blocking issue in the content.

@Zivxx
Zivxx merged commit b407347 into master Nov 11, 2026
4 of 5 checks passed
@Zivxx
Zivxx deleted the ziv/per-18942-nexus-no-cors branch November 11, 2026 13:40
@Zivxx Zivxx changed the title PER-18942: docs(nexus-pdp): Nexus PDP sends no CORS headers; call it from your backend docs(nexus-pdp): Nexus PDP sends no CORS headers; call it from your backend Nov 11, 2026
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