microsoft / dev-proxy

Dev Proxy is an API simulator that helps you effortlessly test your app beyond the happy path.
https://aka.ms/devproxy
MIT License
471 stars 56 forks source link

Bug: Proxy intercepts URLs that should be excluded #729

Closed waldekmastykarz closed 3 months ago

waldekmastykarz commented 3 months ago

Given a URL to watch like: http://contoso.com/api/*, Dev Proxy reports intercepting request like http://contoso.com/script.js. While the URL is excluded later when processed by plugins, it leads to a side-effect in request log plugins, because the request is registered as intercepted based only on the host matching. We need to update the logic for matching request URLs with URLs to watch to include full URLs rather than just host names.