Submitted almost 2 years agoA solution to the URL shortening API landing page challenge
Responsive Url Shortening App Using React and React Query
react, tanstack-query, tailwind-css, typescript
@faizal789

Solution retrospective
I have an error like this in this project when accessing the /api/v1/shorten endpoint.
Access to XMLHttpRequest at 'https://cleanuri.com/api/v1/shorten' from origin 'https://faizal789.github.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Does anyone know how to solve it?
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on faizal789's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord