403 forbidden "The required anti-forgery cookie is not present" error when attempting to create a test


Description

When attempting to create a test on a website page, a web application might get the 403 forbidden "The required anti-forgery cookie is not present" error if whitespace is present in the site name. Users can experience the issue for both SXA and non-SXA websites.

Solution

To resolve the issue:
  1. Change the site name, to remove all white spaces.
  2. Clear the cookies.
Note that you must avoid using characters (in your website names) that are invalid for the website cookies, such as control characters, white spaces (" "), semicolons, or commas.