-
Notifications
You must be signed in to change notification settings - Fork 902
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
Cors Error on Post Request to APi #121
Comments
Thanks for asking, @AbdulSami969 Could you please share specifics of your issue? This can greatly help us understand the issue you encountered. Otherwise, it's really difficulty to guess what went wrong by "WHen i do post request from localhost it gives cors error how to fix it?" What post requests? How do you send post requests? From your custom code? If so, could you share the code snippet here? |
Thanks for replying! `
|
It seems to me that you are trying to send api requests from client-side javascript. It's generally not a good practice to send APi requests from client-side, as you will leak api key to the public in browsers. Could you try sending requests using server-side javascript? It could be helpful to learn more about CORS, as it could help you further troubleshoot & architect your app: https://www.google.com/search?q=cors |
Hi @wenbinf I am building a citizen run NEWS app .. using MICROFEED as CMS thorough REST API How does this REST CRUD operations work, does it uses cloudflare workers? |
WHen i do post request from localhost it gives cors error how to fix it?
The text was updated successfully, but these errors were encountered: