Time to read: 5 min.

The article covers the following topics:

What is 'CSRF invalidation error' or 'CSRF token is invalid'?

Cross-Site Request Forgery (CSRF) is an attack that forces the user to execute unwanted actions on a website during state-changing requests.

'CSRF invalidation error' or 'CSRF token is invalid' occurs when the page is open in the browser for a long time, and then a request for change/save data is sent without the page update. This token is a session validator and serves to protect against counterfeit data.

This error can occur during Affiliate Authorization:

Or while saving an Offer, etc. :


What can you do with error?

The initial solution here is to update the page and not keep it open too long - the lifetime of a token is 1,440 seconds, which is equivalent to 24 minutes.


  1. Open Safari Preferences from the drop-down menu in the upper right corner or through Cmd + comma (⌘ + ,) shortcut.

  2. Click the Privacy tab and make sure that "Cookies and website data" is set to either "Always allow" or "Allow from websites I visit".

  3. Click on the Manage Website Data button to see all locally stored website data.

  4. Search for your Affise domain (eg.: offers-rocketcompany.affise.com) and remove all related entries.

  5. Reload Safari and try to log in again


  1. Open Chrome Settings.

  2. Scroll to the bottom and click on Advanced.

  3. In the 'Privacy and security' section, click the 'Cookies and site data' button.

  4. Click on Cookies.

  5. Next to Allow (Sites that can always use cookies), click Add. Type [*.]offers-rocketcompany.affise.com and click “Add”.

  6. Under All cookies and site data, search for your Affise domain, and delete all related entries.

  7. Reload Chrome and try to log in again


  1. Go to Firefox's Preferences > Privacy & Security menu.

  2. In the History section, select "Use custom settings for history" from the drop-down menu.

  3. Click on Exceptions and whitelist your Affise domain (eg.: offers-rocketcompany.affise.com)

  4. Scroll down to Site Data and click on Settings next to it.

  5. Search for your Affise domain and remove all shown entries.

  6. Reload Firefox and try to log in or sign up again.

If you feel like there are some questions left upon the CSRF invalidation error, feel free to address them to Affise Support Team via [email protected] or your internal live-chat as long as to contact your dedicated Account Manager.

Did this answer your question?