browserup / browserup-proxy

BrowserUp Proxy is a free utility to watch, test, and manipulate web application network traffic and performance.
https://browserup.com
Apache License 2.0
163 stars 42 forks source link

405 Method Not Allowed #389

Open adzmitrenka-redcapcloud opened 2 years ago

adzmitrenka-redcapcloud commented 2 years ago

Describe the bug Get request return response code 405 Method Not Allowed with BrowserUp proxy started. With out proxy everything working fine image

To Reproduce Proxy started on port 0 with following settings: BrowserUpProxy proxy = new BrowserUpProxyServer();

    proxy.setMitmDisabled(!driverConfig.enableProxy());
    proxy.setTrustAllServers(true);
    proxy.setHarCaptureTypes(
            CaptureType.REQUEST_CONTENT,
            CaptureType.REQUEST_BINARY_CONTENT,
            CaptureType.REQUEST_COOKIES,
            CaptureType.REQUEST_HEADERS,
            CaptureType.RESPONSE_CONTENT,
            CaptureType.RESPONSE_BINARY_CONTENT,
            CaptureType.RESPONSE_COOKIES,
            CaptureType.RESPONSE_HEADERS
    );
    proxy.setConnectTimeout(0, TimeUnit.SECONDS);
    proxy.setIdleConnectionTimeout(0, TimeUnit.SECONDS);
    proxy.setRequestTimeout(0, TimeUnit.SECONDS);
    proxy.setIdleConnectionTimeout(0, TimeUnit.SECONDS);
    proxy.setHostNameResolver(new NativeResolver());

Does anyone could help with that or may be not any possible reason for that?