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

v4 "The application's base URL is not set to HTTPS" warning is annoying in localhost #1847

Closed
5 tasks done
ajwootto opened this issue Dec 17, 2024 · 1 comment
Closed
5 tasks done

Comments

@ajwootto
Copy link

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

The error that the SDK logs about the scheme of the base URL not being HTTPS is very annoying in local development, especially when running against localhost which is obviously not a production environment.

I get this error logged like 20 times while the build is running locally, and then again on every page visit.

Describe the ideal solution

I think this warning should explicitly ignore domains that contain "localhost" since it's most likely that someone is running npm build && npm start locally if that is what the environment variable is set to.

Alternatives and current workarounds

No response

Additional context

No response

@guabu guabu mentioned this issue Dec 18, 2024
@guabu
Copy link

guabu commented Dec 18, 2024

Thanks for the feedback! We've removed the warning log in the latest release to be more inline with v3's behavior and to reduce the noise from logs during builds and running apps via next start in tests and locally.

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

3 participants