i started to fetch the API Data using javascript to show daily tasks in a simple HTML File on my computer using my own styles.
My Problem is that its not possible because typical browser doesnt allow direct API use from local servers this way. It will be blocked using a cors policy for security reason.
There are some kind of workarounds like using a reverse Proxy but much easier and consistent can be to add the "Access-Control-Allow-Origin' to the header from the backend server.
Is that a possible option? Maybe you can implement it with a toggle option?
Hi there,
i started to fetch the API Data using javascript to show daily tasks in a simple HTML File on my computer using my own styles.
My Problem is that its not possible because typical browser doesnt allow direct API use from local servers this way. It will be blocked using a cors policy for security reason.
There are some kind of workarounds like using a reverse Proxy but much easier and consistent can be to add the "Access-Control-Allow-Origin' to the header from the backend server.
Is that a possible option? Maybe you can implement it with a toggle option?
Let me know what you think about it.
Thank you anyway! Best wishes Nico