Failed to upload file in Wiki

I want to use the wiki feature to manage documents, but when I create an Open Wiki and create a page, I cannot attach files. It always returns a 403 or 404 error. What should I do?

My version is GitLab Community Edition [11.10.0]

Project visibility is private, it returns 404 when i attach a file:

Project visibility is public, it returns 403 when i attach a file:

I checked the log of file upload failure, indicating that CSRF verification failed. How can I solve this problem?

Logs · Admin Area · GitLab

  1. Can’t verify CSRF token authenticity.
  2. This CSRF token verification failure is handled internally by `GitLab::RequestForgeryProtection

I’m running into this exact same problem, and scouring the web this is the only thing that I can find which truly matches. Were you able to resolve the issue in the end? If so, how did you do so?