有一个名为pretender.js的库,它允许模拟API,这是一个很好的工具,有一个限制:它不能处理绝对的URL。因此,当第三方库执行请求并且他们使用绝对网址(例如http://localhost:4200/api/v1/s3_mock)时,会出现以下错误Pretender will not respond to requests for URLs. It is not possible to accurately simluate the browser's CSP. Remove the http://localhost from http://localhost:4200/api/v1/s3_mock and try again
我想知道如何改变请求并使url相对于伪装者。