To set a cookie in an iframe using JavaScript on the front-end.
- It is not possible to set a cookie in an iframe that has a different domain from the parent page.
- Additionally, you cannot use storage APIs (`document.cookie`, `sessionStorage`, `localStorage`) in Incognito mode unless the user manually enables third-party cookies.