CORS error while accessing /hub/api/users

Hi everyone,

Hope you’re doing good. I’m facing an issue CORS error during integration of GET API ‘hub/api/user’ using Z2JH. From my initial search, i got to know need to add following in /files/hub/jupyterhub_config.py file:

c.Spawner.args = [f’–NotebookApp.allow_origin={}']
c.JupyterHub.tornado_settings = {
‘headers’: {
‘Access-Control-Allow-Origin’: ‘
’,
},
}
I have added this and redeployed Z2JH but still facing CORS issue.
Can you please let me know, what else i need to do in order to resolve this CORS error.

Thank you

Hi! Can you give us more information? Where and when are you getting the CORS error?