Next.js Discord

Discord Forum

Safari "Reduce Protections" error

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
I deploy this project to Vercel and view it from my phone. When the user logs in to the admin page, I add a "token" key to localstorage and give its value to the _id value of the newly created data in my tokens table in mongodb. When the page is refreshed, I check if there is a "token" key in localstorage with useEffect. If there is, I connect to the db and check. The user is automatically logged in.

At the same time, in this useEffect, I also pull the variable I hold for dark mode from localstorage.

I don't know if it is due to this setting or something else, but on iPhones with Safari, this panel gives the warning "If this page is not displaying as expected, you can reduce advanced privacy protections, which may resolve issues." What is the reason and solution for this?

1 Reply