You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I have a remote deployment of Caldera and I haven't been able to log in because I am getting a connection error related to CORS. A local deployment works as expected.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8888/api/v2/config/main. (Reason: CORS request did not succeed). Status code: (null).
I set the API to allow all PUT requests but that didn't work out for me.
@web.middleware async def pass_option_middleware(request, handler): """Allow all 'OPTIONS' request to the server to return 200 This mitigates CORS issues while developing the UI. """ if request.method == 'PUT': raise web.HTTPOk() return await handler(request)
Has anyone have this issue?
Note: I'm not an API expert.
The text was updated successfully, but these errors were encountered:
Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/
Hi all, I have a remote deployment of Caldera and I haven't been able to log in because I am getting a connection error related to CORS. A local deployment works as expected.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8888/api/v2/config/main. (Reason: CORS request did not succeed). Status code: (null).
I set the API to allow all PUT requests but that didn't work out for me.
@web.middleware async def pass_option_middleware(request, handler): """Allow all 'OPTIONS' request to the server to return 200 This mitigates CORS issues while developing the UI. """ if request.method == 'PUT': raise web.HTTPOk() return await handler(request)
Has anyone have this issue?
Note: I'm not an API expert.
The text was updated successfully, but these errors were encountered: