René's URL Explorer Experiment


Title: OIDC token endpoint returns 400 'origin not allowed for client' for CDN-loaded apps · Issue #10 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: OIDC token endpoint returns 400 'origin not allowed for client' for CDN-loaded apps · Issue #10 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: OIDC token endpoint returns 400 'origin not allowed for client' for CDN-loaded apps · Issue #10 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Problem When Mashlib is loaded from CDN (unpkg.com), the Solid-OIDC login flow fails at the token exchange step with: 400 Bad Request origin not allowed for client Root Cause The oidc-provider library validates CORS requests against the ...

Open Graph Description: Problem When Mashlib is loaded from CDN (unpkg.com), the Solid-OIDC login flow fails at the token exchange step with: 400 Bad Request origin not allowed for client Root Cause The oidc-provider libr...

X Description: Problem When Mashlib is loaded from CDN (unpkg.com), the Solid-OIDC login flow fails at the token exchange step with: 400 Bad Request origin not allowed for client Root Cause The oidc-provider libr...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OIDC token endpoint returns 400 'origin not allowed for client' for CDN-loaded apps","articleBody":"## Problem\n\nWhen Mashlib is loaded from CDN (unpkg.com), the Solid-OIDC login flow fails at the token exchange step with:\n\n```\n400 Bad Request\norigin not allowed for client\n```\n\n## Root Cause\n\nThe `oidc-provider` library validates CORS requests against the client's registered redirect URIs by default. When a web app like Mashlib is loaded from a CDN domain (unpkg.com) but makes token requests to the Solid server (jss:4000), the origin doesn't match.\n\n## Solution\n\nConfigure `clientBasedCORS` in the OIDC provider to allow all origins:\n\n```javascript\nclientBasedCORS: () =\u003e true,\n```\n\nThis is appropriate for Solid servers because:\n- Solid servers are public and should accept requests from any web app\n- Web apps can be hosted anywhere (CDNs, local development, etc.)\n- The Solid ecosystem relies on apps being able to authenticate against any pod\n\n## Affected Files\n\n- `src/idp/provider.js`\n\n## Testing\n\n1. Start JSS with `--mashlib-cdn --idp` flags\n2. Navigate to a protected resource\n3. Click \"Sign In\" in Mashlib\n4. Complete the login flow\n5. Verify token exchange succeeds","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2025-12-29T07:32:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/10/JavaScriptSolidServer/issues/10"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:82e50e36-1216-5ee4-0c58-24d1469ef135
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAD12:3D45D4:8BAF403:B4915C1:6976FE00
html-safe-nonce15f3df21069a35917469c38061dbda6a45ef1f697e3e780b422266374266cfe0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDEyOjNENDVENDo4QkFGNDAzOkI0OTE1QzE6Njk3NkZFMDAiLCJ2aXNpdG9yX2lkIjoiMTM3MzYwOTkxNDAyNTgzNjAzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6e29d3fc729868142c9760e1b21cc20b3541018686c6dc841a600e435471d88b
hovercard-subject-tagissue:3766671520
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/10/issue_layout
twitter:imagehttps://opengraph.githubassets.com/98adc4a9553583c587220e852d77156a336a4e4e5a34f07da47f66ad460b76f6/JavaScriptSolidServer/JavaScriptSolidServer/issues/10
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/98adc4a9553583c587220e852d77156a336a4e4e5a34f07da47f66ad460b76f6/JavaScriptSolidServer/JavaScriptSolidServer/issues/10
og:image:altProblem When Mashlib is loaded from CDN (unpkg.com), the Solid-OIDC login flow fails at the token exchange step with: 400 Bad Request origin not allowed for client Root Cause The oidc-provider libr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef752335dbbea672610081196a1998e39aec5e14b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F10
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F10
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10
JavaScriptSolidServer https://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Notifications https://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer
Fork 4 https://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer
Star 4 https://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer
Code https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues 59 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests 6 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actions https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projects 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insights https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulse
Code https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actions https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projects https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insights https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulse
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10
#11https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/11
OIDC token endpoint returns 400 'origin not allowed for client' for CDN-loaded appshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10#top
#11https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/11
https://github.com/melvincarvalho
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on Dec 29, 2025https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/10#issue-3766671520
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.