localhost sent an invalid response. Try running Windows Network Diagnostics. ERR_SSL_PROTOCOL_ERROR - authentication

so I was trying to login to my website with google using localhost and it show me this error I had to change my URL from https//localhost:3000 to http//localhost:3000 from my app.js and in console google cloud enter image description here

Related

Is it possible to add an IP address to the Google Console's list of allowed javascript authorised origins?

I have implemented the Sign in with google option in my web app. (JSP page, Tomcat server, localhost:8080)
Google sign-in works fine while running it in localhost, but the sign-in option is not working while running the web app using IP address, it results in "Access blocked: Sign in with google’s request is invalid". Error 400: redirect_uri_mismatch.
So I thought I need to add the IP address in the developer google cloud console as an authorized origin, But it won't allow IP as an authorized javascript origin.
How can I add my IP address(172.22....) as an authorised javascript origin, So that sign-in with google option works?
clich here to more details
Basically, I'm trying http://172.22.... instead of http://localhost:8080
Using private IPs is not allowed.
See https://developers.google.com/identity/protocols/oauth2/policies#secure-response-handling and the host section of https://developers.google.com/identity/protocols/oauth2/web-server#uri-validation.

STS server said it started, but got 404 error message

I ran localhost sever and sts seems to have no problem, says server started
enter image description here
but when I try GET request via postman, I get 404 error messages as follows
enter image description here

Http error 502 when hitting API from PyCharm

I am using Apache Tomcat 9 to run documentum rest APIs from Windows server but whenever I am hitting the API from PyCharm it is giving the 502 error (http response code) and the text is:
**The server you are requesting is not responding. This is not a proxy issue. To solve the problem contact server administrator. Your sending address on the internet is Ip address.
The same APIs are running fine from POSTMAN.
API: http://localhost:8080/dctm-rest/repositories
Please help and suggest how to resolve this http error of 502 when hitting API from PyCharm.

Using Google oauth in a deployment

I've set up an ASP.Net Core project to use Google OAuth signin from this tutorial
I created a client ID & secret using the settings 'Web server' with address 'https://localhost:5001/signin-google' and exposed the secrets to the app as described in the tutorial. I have a basic view which is just the minimum required HTML & JS to show a 'Sign in with Google' button and allow authentication (verified working on localhost).
I created a deployment in a docker container on a Raspberry Pi on the local network. When I navigate to the view with the Google sign in button and click it, I get an error of
Error: invalid_request
Permission denied to generate login hint for target domain.
In the error details it specifies the redirect URL as:
redirect_uri=storagerelay://http/x.x.x.x:8000?id=auth572720
where x.x.x.x is the address of the Pi on our local network
I am assuming this is because the client expects a redirect URL of 'https://localhost..etc' but is getting 'http://x.x.x.x'.
I am unsure how to solve this, it seems like I may need to create another token to enable authentication on my Raspberry Pi (e.g. create another 'web server' OAuth sign in using the re-direct address 'http://x.x.x.x.etc/signin-google' but when I try this I get an error of 'Must be a top private domain'.
All in all this is very frustrating, and I would appreciate any help.
There is no need to create a new credential, just add the new redirect URL to the existing credential.
The redirect URL domain must be a TLD. Choose something like localhost.mydomain.com and then add an entry in your /etc/hosts file to resolve localhost.mydomain.com to x.x.x.x

getUserMedia error:Failed to get access to local media - WEBRTC

I've configured the App RTC Server in my PC. When I am accessing using local host (localhost:3000). The Video call is working. But when I am using IP address getting the error. (http://192.168.0.103:3000)
Failed to get access to local media. Error name was
PermissionDeniedError. Continuing without sending a stream.
Error getting user media. Only secure origins are allowed.
getUsermedia error: Failed to get access to local media.
getUserMedianeeds HTTPS to work. You'll have to implement HTTPS for your webserver. localhost is the only domain allowed to use getUserMedia without HTTPS.