self-hosted
self-hosted copied to clipboard
bug: Cross-Origin Request Blocked
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).
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.