Hello, setting all cookies as HttpOnly=true will not allow JavaScript to access them. This is required by Azure AD UI and cannot be changed. Security, however, is implemented trough different techniques/features. Azure AD UI scripts are safe to use.
Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.