"No 'Access-Control-Allow-Origin' header is present on the requested resource" 错误是彻底的死胡同吗

Is a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error a complete dead end

我在尝试使用前端应用程序从 api 中提取资源时遇到此错误:

No 'Access-Control-Allow-Origin' header is present on the requested resource.

我在 SO 上看到很多关于这个的争论。我想提出一个非常简单的问题。

我无法更改此 REST 服务器的后端(我不拥有它)。
我正在开发的应用程序是一个 PWA。
我搞砸了吗?

I am in no way, capable of changing the back end on this REST server (I don't own it).

那么您根本无法更改 headers。您将不得不通过自己的后端代理它。据我所知,没有前端网络调用会覆盖它(甚至服务工作者拦截也不会)