Problems uploading logo

When trying to upload a logo, I get an error. Anyone know how to solve this?

Error message:

This request contains an invalid authentication information.

This might happen in the following situations:

  • You left the editor open in another window/tab and logged off and on again
  • Your authentication token expired after a long period of inactivity
  • Somebody tried to perform a CSRF attack

If you are sure that none of these situations apply in your case, you might have found a bug. We are sorry about that, please report it on XWiki JIRA

Do you want to resend the request? If unsure, say No.

Looks like the urlrewritefilter is the problem. Not quite sure how to fix it.