self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

bug: Cross-Origin Request Blocked

Open YoussefRefaat1976 opened this issue 7 months ago • 1 comments

What happened?

This appears in the console when I try to upload all kinds of files ,photos Please help me

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.italytees.com/autumn/attachments. (Reason: header ‘authorization’ is not allowed according to header ‘Access-Control-Allow-Headers’ from CORS preflight response).

YoussefRefaat1976 avatar Jun 17 '25 07:06 YoussefRefaat1976

From the Caddyfile extract in https://github.com/revoltchat/self-hosted/issues/153

@autumn path /autumn*
handle @autumn {
    uri strip_prefix /autumn
    reverse_proxy http://autumn:14704 {
        header_up Authorization {>Authorization}
    }
}

I forget if you ever explained why you've got an Authorization header there.

Docteh avatar Jun 28 '25 02:06 Docteh