Go to the issue you need the patch for: https://www.drupal.org/project/x_frame_options/issues/3139026
Click on the plain diff link for the branch you need:
Copy the url of the page you are sent to!
https://git.drupalcode.org/project/x_frame_options/-/merge_requests/3.diff