When I load the page in Experience Editor for the first time, I am able to get Context.pagemode.IsExperienceEditor
as true
. We have a few ajax
begin forms on the page. When I call any method in the page we will be validating a filter and if it's Experience Editor then we allow access to the method, I am getting Context.PageMode.IsExperienceEditor
as false
invalidation method.
As a result, the 302 redirection
happens resulting in CORS error
. This was working fine earlier in all environments. But currently not working in a QA environment
.
Note: We didn't make changes to the code at all.