-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Being blocked by Cors #22
Comments
Thanks! That's awesome. Not sure why this is happening, I use Firefox and it works. Got a reproduction? |
@sachinraja I'm not sure why either. On my home laptop it works 🙈 but even if I clear the cache it still fails. Exact same server code. |
Might have something to do with security settings maybe? JsDelivr is a fairly popular CDN though. |
@sachinraja it's default. |
@sachinraja |
I'm still getting the error which is strange |
It's much easier to put the files on a CDN than try to send the files directly from |
@sachinraja ok, I never use CDNs for libraries :-P some people want to be able to use older versions consistently. Anyhow; I disabled CORS on Firefox for now; living on the edge! 😎 |
@OllyDixon - I was getting the same error in Safari and resolved it by manually setting the CDN URL in the renderOptions like so:
Not sure why but it seems to have to do with the protocol. Forcing it to use |
Thanks cody I'll try this later. We're using the Playground pretty heavily for API docs across our projects (flutter and typescript hehe) I don't feel so safe using the CDN as I don't see any versioning on it. |
@OllyDixon That's only the base CDN url. |
@sachinraja I understand but many times I used old NPM packages and the CDN files no longer exist. Would be great if you could ship with the compiled JS code inside the package 😎 eternal support then, no worries 😎 btw it's a great tool, we use it for all our auto-docs on the TRPC project. Just one improvement, when you start getting 100s of endpoints the 'insert' function becomes a bit cluttered 😊 |
Hey,
Amazing job on this library, really amazing. Using as docs for tRPC for our teams now.
We have one issue though, Firefox (not chrome or Safari) blocks the cors request, not sure why.
We have the express server setup with Cors enabled.
The text was updated successfully, but these errors were encountered: