Unfortunately, the absence of the CORS headers is a long-known issue. It should be fixed server-side as it's hard to mitigate on a web browser.
If you're building a user script, you can usually ignore CORS restrictions by using the right function.
Otherwise, if you're writing a vanilla JavaScript application, you must find a way to add the required HTTP header. The easiest solution is probably to use a serverless service that you can use as a proxy to add the CORS header to all responses.
I understand that this is a suboptimal solution, but at the moment there's no proper way to solve this issue.
All Comments (1) Comments
Unfortunately, the absence of the CORS headers is a long-known issue. It should be fixed server-side as it's hard to mitigate on a web browser.
If you're building a user script, you can usually ignore CORS restrictions by using the right function.
Otherwise, if you're writing a vanilla JavaScript application, you must find a way to add the required HTTP header. The easiest solution is probably to use a serverless service that you can use as a proxy to add the CORS header to all responses.
I understand that this is a suboptimal solution, but at the moment there's no proper way to solve this issue.