proxyjmeterblazemeter

Website some content like table is not displayed once proxy is enabled


I have set up a proxy in order to record the traffics. However, some content on the website is not displayed.

Is that the web design issue?

the website is set up at local, multiple docker images consist of backend server, API and front end web-app.

enter image description here

The network result, I noticed no 200 OK returned but 502.

Access to fetch at 'http://0.0.0.0:8088/get_trained_models' from origin 'http://localhost:2000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Solution

  • The only valid way of resolving this issue is asking the person who is responsible for your server configuration to add localhost:8888 to Access-Control-Allow-Origin

    With regards to workarounds:

    1. Try using a browser extension like Allow CORS: Access-Control-Allow-Origin or Moesif Origin & CORS Changer which make your application think that JMeter's HTTP(S) Test Script Recorder host and port are valid origins
    2. Use JMeter Chrome Extension for recording the test