You can do this using the Custom JavaScript interceptor. Go to API Design > Interceptors and follow the steps:
In the Custom Interceptors section, access your Custom JavaScript or create a new one;
In the editor, enter the script:
Click on Save to keep the change.
See the gif below with these steps:

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more