0

I am making a side project using nextjs and wanted to add auth0. I have it working to the point where I am able to login, however, upon redirect I get the following error. How do i fix this?

This site can’t provide a secure connectionlocalhost sent an invalid response. Try running Windows Network Diagnostics. ERR_SSL_PROTOCOL_ERROR

I have tried configuring the callback url to be http://localhost:3000/api/auth/callback in the auth0 dashboard

4
  • can you share the github repo Commented Jun 22, 2024 at 17:27
  • what is the auth npm package you are using Commented Jun 22, 2024 at 17:30
  • Im using the deafult npm auth0 package -- npm install @auth0/nextjs-auth0 Commented Jun 22, 2024 at 19:09
  • Perhaps your browser is redirecting to https? Try clearing site data, this usually makes the browser try http again instead of https Commented Jun 23, 2024 at 2:14

1 Answer 1

0

I followed the documentation mentioned on the app creation page.

Can you please cross-check the configuration with my app?

In your app settings.

1

2

3

4

I guess the issue is with the CORS URL for the allowed web origins in your configuration

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.