1. I need to create an issue report regarding an error encountered while using the fetch() function to retrieve data from a REST API.
When loading data from the server using SSR (Server-Side Rendering), everything loads correctly. However, when attempting to reload on the client-side, the browser console throws the following error:
[Error] Fetch API cannot load https://forum.???.cz/api/forums/posts?sortBy=date&sortDir=desc&perPage=6 due to access control checks.
[Error] Failed to load resource: Preflight response is not successful. Status code: 401 (posts, line 0)
and
Access to fetch at 'https://forum.???.cz/api/forums/posts?sortBy=date&sortDir=desc&perPage=6' from origin 'https://???.vercel.app' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
2. The inability to download a TypeScript "interface" in a JavaScript application, such as Vue/Nuxt, through any method like codegen.
3. Additionally, I would like to mention that the documentation is quite inadequate and needs significant improvement.