Assuming your website is at https://yourwebsite.example.com , you can embed the notebook on your website with the following configuration setting in jupyter_notebook_config.py:
c.NotebookApp.tornado_settings = {
'headers': {
'Content-Security-Policy': "frame-ancestors https://yourwebsite.example.com 'self' ";
default-src https: ‘unsafe-inline’;
connect-src https: wss:
}
}