Funny characters at beginning of PostLogin, but only on localhost
Hi.
I have a site that I've been working on for a while, and has been working fine on both localhost and on the Azure site where it lives publicly.
Recently however, I've been unable to login to Umbraco when hosting locally. I can see in the network panel the POST to PostLogin, and the response looks correct except for some funny characters at the beginning:
)]}'
Here is the entire response copied from the network tab:
I've definitely seen a more recent post than that one, just can't find it at the moment, maybe it was on discord rather than the forum, I'll keep digging.
Funny characters at beginning of PostLogin, but only on localhost
Hi.
I have a site that I've been working on for a while, and has been working fine on both localhost and on the Azure site where it lives publicly.
Recently however, I've been unable to login to Umbraco when hosting locally. I can see in the network panel the POST to PostLogin, and the response looks correct except for some funny characters at the beginning: )]}'
Here is the entire response copied from the network tab:
Then, the call to IsAuthenticated returns a similar bad response:
I have published this site to live, and it still is working fine, but can't debug into any Umbraco events because of it.
Any ideas?
IIRC this is something to do with JSON Hijacking protection but I can't currently find the post about it, I will keep digging to see if I can find it.
Wow. Good one.
https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/95105-umbracoauthorizedjsoncontroller-adds-garbled-json-to-front-of-all-results
No answer on the thread, but it's a lead.
I've definitely seen a more recent post than that one, just can't find it at the moment, maybe it was on discord rather than the forum, I'll keep digging.
is working on a reply...