Donor Dashboard should work on a subdomain multisite
under review
Jason Adams
Presently, the Donor Dashboard throws authentication (forbidden) errors for the REST API calls on the Donor Dashboard when being used on a subdomain multisite. The issue is specifically seen when the Donor Dashboard is being used on the subsite.
The user reporting the issue has the cookies opened up properly, so if the primary is example.com and the subsite is subsite.example.com, the cookies are set to .example.com — which should make it available to all subsites.
Ben Meredith
under review
I'm marking this as under review for our team to have a look, but definitely note the code workaround from Scott below.
Scott Kingsley Clark
I decided to just add a snippet to my site to fix this, you can do this too on your subdomain by adding this code. Be sure to only run it on that subdomain (based on current blog id).
Here's the gist with the workaround, hope it helps other people!
Scott Kingsley Clark
Is there any workaround I can use, such as forcing a function to run when they log into the site (on normal login page) that will set up the specific cookie you're requiring?
Scott Kingsley Clark
Noting -- if you log in to the Donor Dashboard itself (if you were not already logged in) or if you use the magic link to login -- the Donor Dashboard works fine and dandy.
If you log in outside of the Donor Dashboard in this use-case, it fails to authenticate any of the REST API calls. I sort of expected it to at least fallback on the REST API nonce / existing user authentication.