I’ve tried to deploy my React SPA application on an AWS S3 bucket.
The site works successfully on Safari, but I receive this error in chrome:
Uncaught (in promise) Error:
auth0-spa-js must run on a secure origin.
See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin
for more information.
I’ve NEVER seen a forum topic where an Auth0 engineer fucking replies and helps, they are forcing everyone to pay for support… Why no auth0 staff member ever replies??? Do they check the ■■■■■■■ forum???
I had the same issue while I was developing on a local network,
The problem:
My application is using auth0-react (redirect with popup), everything was working fine on Chrome but the app was not working on Safari, unless every user has to remove the default pop-up blocker on Safari.
I was running my React/.Net Core app on a windows machine and wanted to access the site from a mac on the same network to debug the issue,
The solution:
Switching to using HTTPS solved it for me,
Follow this link to set up HTTPS in Development for a React app: