How do I record a .har file?
A .har file tracks all the logging of a web browser's interaction with a site. Recording a .har file that shows all the requests and/or errors in your network tab provides valuable insights for the Frontegg team and helps with troubleshooting any issues you report.
To record a .har file, please take the following steps:
Right-click in the browser window with your Frontegg login or your app integrated with Frontegg and select Inspect.
Click the Network tab in the panel that appears.
Make sure the 'Preserve log' section is checked:
- After completing the flow where you were getting errors, you can click on the arrow down symbol to export your .har file.
- Once you have downloaded the .har file, you should sanitize it from sensitive values such as access information and PII. To do so, you can use Frontegg's Harmor as long as you have NPM (Node.js) installed.
How to use Harmor?
- Download the sanitization template here.
- Open Terminal/CMD in the .har file location, and make sure the template and .har file are in the same directory.