funkhaus / fuxt-backend

A theme that turns WordPress into a true Headless CMS. Optimized for the fuxt frontend boilerplate and fuxt-api plugin.
GNU General Public License v3.0
101 stars 19 forks source link

/wp-login redirect loop #36

Closed drewbaker closed 2 years ago

drewbaker commented 2 years ago

If you go to /wp-login and login with the right details, it redirects you back to the /wp-login page. Then you have to go to /wp-admin to get to the dashboard. I suspect this is related to the new cookie things built into the site.

I've also noticed that when you logout, it asks you to confirm that you want to log out... never seen that before.

drewbaker commented 2 years ago

Also, in Chrome the GraphiQL explorer doesn't work: https://prettybird-api.flywheelsites.com/wp-admin/admin.php?page=graphiql-ide

drewbaker commented 2 years ago

If you change this setting, then what happens I suspect is, on logout, are we not clearing all cookies that were prev set based on the settings on this screen.

So you end up with a bunch of WP auth cookies for different sub-domains being sent, and the server doesn't know what to do.

So we need to make it so that when the setting is changed, we just delete the cookies set from the previous setting. It's I expect this would require a person to login again, that's fine.

Screen Shot 2022-05-18 at 8 28 50 PM
rsm0128 commented 2 years ago

Created PR #37 to organize this issue.