# /api/kernelspecs

**URL:** https://discourse.jupyter.org/t/api-kernelspecs/26506
**Category:** JupyterLab
**Created:** [June 24, 2024, 4:02pm UTC](https://discourse.jupyter.org/t/api-kernelspecs/26506 "2024-06-24T16:02:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pfay](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@pfay](https://discourse.jupyter.org/u/pfay)
#### Post date: [June 24, 2024, 4:02pm UTC](https://discourse.jupyter.org/t/api-kernelspecs/26506/1 "2024-06-24T16:02:10Z")

</div>

Hi, I noticed a strange behavior when using a jupyter lab server running on a docker image.

when I put this below in google chrome:  
**[http://localhost:8888/api/kernelspecs?token=4dc1910c6ba58541990ec8ad5fabacd5990113fd065f838c](http://localhost:8888/api/kernelspecs?token=4dc1910c6ba58541990ec8ad5fabacd5990113fd065f838c)**  
i get:  
**{“message”: “Forbidden”, “reason”: null}**

**When i put the exact same url in microsoft explorer, i get the kernelspecs json below. Any ideas why? I am trying to do the same with an html webapp and getting the same behavior than chrome ( ie no answer). thank you**

I did add “disable\_check\_xsrf”: true in the json config file (/home/sysml/.jupyter/jupyter\_notebook\_config.json) but no effect on the behaviour in chrome or the local webapp.

{  
“default”: “python3”,  
“kernelspecs”: {  
“sysml”: {  
“name”: “sysml”,  
“spec”: {  
“argv”: [  
“java”,  
“-jar”,  
“/home/sysml/conda/share/jupyter/kernels/sysml/jupyter-sysml-kernel-0.33.0-all.jar”,  
“{connection\_file}”  
],  
“env”: {  
"ISY  
},  
“display\_name”: “SysML”,  
“language”: “sysml”,  
“interrupt\_mode”: “message”,  
“metadata”: {}  
},  
“resources”: {  
“kernel.js”: “/kernelspecs/sysml/kernel.js”  
}  
},  
“python3”: {  
“name”: “python3”,  
“spec”: {  
“argv”: [  
“/home/sysml/conda/bin/python”,  
“-m”,  
“ipykernel\_launcher”,  
“-f”,  
“{connection\_file}”  
],  
“env”: {},  
“display\_name”: “Python 3 (ipykernel)”,  
“language”: “python”,  
“interrupt\_mode”: “signal”,  
“metadata”: {  
“debugger”: true  
}  
},  
“resources”: {  
“logo-64x64”: “/kernelspecs/python3/logo-64x64.png”,  
“logo-svg”: “/kernelspecs/python3/logo-svg.svg”,  
“logo-32x32”: “/kernelspecs/python3/logo-32x32.png”  
}  
}  
}  
}
