Remove "X-Frame-Options" responce header on BrowserWindow loadURL()


Hi! I develop an electron app to open some web-pages in one window in frames. Some sites have “X-Frame-Options” header, that blocks opening this site in frameset. I find an extension for Chrome, that remove this header, and it works fine. But how I can get this on Electron app? I tryed something like this:
session.defaultSession.webRequest.onHeadersReceived((details, callback) => {
callback({ cancel: false, responseHeaders: details.responseHeaders });
but it dosen’t work. Any idea to modify request headers?