403 Forbidden Error while calling Jupyter notebook Rest API

Re-post of: How to get kernel state from running local jupyter notebook? - #5 by sohanur_shanto