Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixed content error #1965

Open
syed-saad-zahidi opened this issue Jul 16, 2024 · 5 comments
Open

Mixed content error #1965

syed-saad-zahidi opened this issue Jul 16, 2024 · 5 comments

Comments

@syed-saad-zahidi
Copy link

I am facing mix content error. My react application is running on https. while my frost server is on http. when creating things i am facing this error Mixed Content: The page at 'https://sensorhub-dev.hef.tum.de/devices/store#iss=https%3A%2F%2Fkeycloak-dev.hef.tum.de%2Frealms%2Fmaster' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://tuzehez-dev.srv.mwn.de:6062/FROST-Server/v1.0/Things'. This request has been blocked; the content must be served over HTTPS. I cannot put my frost server on https because there will be multiple frost instances.

@hylkevds
Copy link
Member

@syed-saad-zahidi
Copy link
Author

I know it can be run on same url. But if i used this approach then there is an error from keycloak as i am using keycloak for auth.keycloak is removing /port from the redirect url and returning acess_token like url/?access_token=123. where as it should actually return url/port?access_token=123. So therefore i am trying to put my frost still on http

@hylkevds
Copy link
Member

That sounds like a mis-configured KeyCloak instance.

Regardless, mixed content is not possible in modern browsers. There is no way around that.

@hylkevds
Copy link
Member

Those are not secured, but in difference instances we've not had redirect issues that were not directly related to mis-configured redirect URLs in KeyCloak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants