gitea-1.9 version,Upload user profile error #3726

Closed
opened 2025-11-02 05:23:12 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @mirroro on GitHub (Aug 4, 2019).

Upload User Head Image Error Reporting Using Gitea Version 1.9。
The contents are as follows:

Bad Request: no CSRF token present

Originally created by @mirroro on GitHub (Aug 4, 2019). Upload User Head Image Error Reporting Using Gitea Version 1.9。 The contents are as follows: Bad Request: no CSRF token present
GiteaMirror added the issue/duplicate label 2025-11-02 05:23:12 -06:00
Author
Owner

@wxk6b1203 commented on GitHub (Aug 4, 2019):

The same error occurred when using nginx as reverse proxy and uploading avatar using Chrome 76.0.3809.87. Here is some of my settings:

proxy_http_version 1.1;
 proxy_set_header Connection "Keep-Alive";
 #proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header        X-NginX-Proxy   true;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_header       Set-Cookie;
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_pass_header X-CSRF-TOKEN;
proxy_set_header        Upgrade         $http_upgrade;
@wxk6b1203 commented on GitHub (Aug 4, 2019): The same error occurred when using nginx as reverse proxy and uploading avatar using Chrome 76.0.3809.87. Here is some of my settings: ```nginx proxy_http_version 1.1; proxy_set_header Connection "Keep-Alive"; #proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-NginX-Proxy true; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; add_header 'Access-Control-Allow-Credentials' 'true'; proxy_pass_header X-CSRF-TOKEN; proxy_set_header Upgrade $http_upgrade; ```
Author
Owner

@wxk6b1203 commented on GitHub (Aug 4, 2019):

Not only this wrong with Chome 76, but also uploading attachments on issue. Maybe it is a serious problem with Chrome, not with gitea....................................

@wxk6b1203 commented on GitHub (Aug 4, 2019): Not only this wrong with Chome 76, but also uploading attachments on issue. Maybe it is a serious problem with Chrome, not with gitea....................................
Author
Owner

@mirroro commented on GitHub (Aug 4, 2019):

It's true that only chrom 76 can't upload pictures. Why does this happen?

@mirroro commented on GitHub (Aug 4, 2019): It's true that only chrom 76 can't upload pictures. Why does this happen?
Author
Owner

@mirroro commented on GitHub (Aug 4, 2019):

Other browsers are fine.

@mirroro commented on GitHub (Aug 4, 2019): Other browsers are fine.
Author
Owner

@stale[bot] commented on GitHub (Oct 3, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Oct 3, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@lunny commented on GitHub (Oct 5, 2019):

#7955 is duplicated with this one. But it reports more avatars problem. So let's close this one.

@lunny commented on GitHub (Oct 5, 2019): #7955 is duplicated with this one. But it reports more avatars problem. So let's close this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3726