# Bypass auth0-spa-js secure origin

**URL:** <https://community.auth0.com/t/bypass-auth0-spa-js-secure-origin/134267>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [May 16, 2024, 11:32am UTC](https://community.auth0.com/t/bypass-auth0-spa-js-secure-origin/134267 "2024-05-16T11:32:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gxomalis](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gxomalis](https://community.auth0.com/u/gxomalis)\
**Post date:** [May 16, 2024, 11:32am UTC](https://community.auth0.com/t/bypass-auth0-spa-js-secure-origin/134267/1 "2024-05-16T11:32:34Z")

</div>

Hey! I’m trying to connect to my local website though my IP instead of localhost for testing purposes and I get the error “auth0-spa-js must run on a secure origin”.

Is there any way to bypass this and connect from the IP? Cause otherwise all the auth0 I’m using is going to waste, as I’m gonna need to log on my website through IPs when the website is finished…

Any help would be appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![Stephen378Baker](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Stephen378Baker](https://community.auth0.com/u/Stephen378Baker)\
**Post date:** [May 21, 2024, 10:21am UTC](https://community.auth0.com/t/bypass-auth0-spa-js-secure-origin/134267/2 "2024-05-21T10:21:59Z")

</div>

Even for local development, you can set up HTTPS. For example, you can create a self-signed certificate and configure your local server to use it. This will allow you to access your site via [https://localhost](https://localhost) or your local IP with https protocol. Some developers have found workarounds by modifying the Auth0 configuration to allow non-secure origins, but this is not recommended as it can introduce security vulnerabilities.

---

<div class="post-metadata">

**Author:** ![gxomalis](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gxomalis](https://community.auth0.com/u/gxomalis)\
**Post date:** [May 21, 2024, 10:29am UTC](https://community.auth0.com/t/bypass-auth0-spa-js-secure-origin/134267/3 "2024-05-21T10:29:14Z")

</div>

yeah i did that earlier and it worked well! Now i have Mixed Content problems and I’m looking a fix for it.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 4, 2024, 10:29am UTC](https://community.auth0.com/t/bypass-auth0-spa-js-secure-origin/134267/4 "2024-06-04T10:29:46Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
