- To the right of the address bar, click the Chrome menu icon (⋮) and then select More Tools > Developer Tools. The Chrome Developer Tools window will open.
- Click the Network tab.
- Select the Preserve log checkbox.
- Click the Clear icon (a circle with a line through it) to clear the network log.
- While the Developer Tools window remains open, reproduce the issue you are experiencing.
- After you have reproduced the issue, you can export the log as a HAR file. To do this, right-click anywhere in the list of network requests and select Save all as HAR with content.
- Name and save the file.
You also have the option to export a sanitized HAR file, which will not include sensitive data.
- On the Network panel, click the Export HAR (sanitized) button (a downward-facing arrow).
If you need to include sensitive data, you can do the following:
- Click the Settings icon (a gear icon) in the menu bar of the Developer Tools window.
- On the Preferences tab, under the Network section, select Allow to generate HAR with sensitive data.
- Close the Settings window.
- Long-click the Export HAR (sanitized) button and from the drop-down menu, select Export HAR (with sensitive data).