-
Notifications
You must be signed in to change notification settings - Fork 57
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
API throws CORS error #21
Comments
I see! Haven't given any consideration to fetching client side like this before and the implication to throwing the doors open on CORS ... let me do some research and get back to you |
No worries Simeon. I'm going a different direction with my project, so I won't be using this for now. However, I thought you might want a heads up. No rush on my behalf needed. Thanks for the quick response though. |
same problem here.. |
Is this still being looked into? |
+1 Waiting for this |
It will be VERY useful! |
Up |
Since I keep getting pinged on this one, I thought I'd at least share the solution we've gone with in the meantime: https://gka.github.io/chroma.js/ This is an extremely tiny dependency that can do a whole host of things with colors. The This is more of a "build it yourself" option, but just thought I'd share in case it helps others out. |
Confused as to how to use this "API" if it cannot be called from outside servers? Hopefully it can be made useful some day. I ended up creating a PHP script, that used curl to query the tints.dev Palette API endpoint , on my server. |
Hey, first off this is great! I've attempted to build something like this and really be struggling. The colors end up uneven or in the wrong oder. However, I'm running into cross-origin (CORS) when I attempt to use your API.
Using the example endpoint here:
https://www.simeongriggs.dev/using-the-tailwind-css-palette-generator-and-api
Here's the error received:
The text was updated successfully, but these errors were encountered: