有一个名为pretender.js的库,它允许mock API,这是一个很好的工具,但有一个限制:它不能处理绝对urls。因此,当请求由第三方库执行并且它们使用绝对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
我想知道怎么可能改变请求并使url在伪装者内部相对。
发布于 2015-07-09 15:35:25
https://stackoverflow.com/questions/31300727
复制相似问题