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

ajax request cors problem #218

Open
993739033 opened this issue Jun 7, 2023 · 0 comments
Open

ajax request cors problem #218

993739033 opened this issue Jun 7, 2023 · 0 comments

Comments

@993739033
Copy link

hello geckoview deveplopers
how can i resovler this problem. thx!

xhr.js:177 Mixed Content: The page at 'https://xxxx.com/' was loaded over HTTPS,
but requested an insecure XMLHttpRequest endpoint 'http://139.196.x.x:xxxx/api/Token'.
This request has been blocked; the content must be served over HTTPS.

I have no effect using this code

GeckoRuntimeSettings.Builder builder = new GeckoRuntimeSettings.Builder()
.allowInsecureConnections(ALLOW_ALL)
.javaScriptEnabled(true)
.doubleTapZoomingEnabled(false)
.inputAutoZoomEnabled(false)
.forceUserScalableEnabled(false)
.aboutConfigEnabled(true)
.webManifest(true)
.consoleOutput(true);
session = new GeckoSession();
runtime = GeckoRuntime.create(this,builder.build());

allowInsecureConnections(ALLOW_ALL) and .forceUserScalableEnabled(false) has no effect with geckoview

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

1 participant