Tip: If the request depends on cookies/session, you must run the script on the same origin you captured it from so the browser sends the right credentials.
A proof of concept for using the developer menu in the Dying Light 2 game by Techland. This approach directly uses DevTools to play the main game with a wrapper DLL that applies some memory editing ...