HTTP File Upload (CORS Headers)

Informational, not scoredRead XEP-0363

Lets web clients upload files: the upload server answers with CORS headers.

How to pass

ejabberd

If you are using a reverse proxy or an HTTP Upload external script make sure you are setting the correct CORS headers:

modules:
  ...
  mod_http_upload:
    ...
    custom_headers:
      "Access-Control-Allow-Origin": "https://domain.tld"
      "Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
      "Access-Control-Allow-Headers": "Content-Type"

Prosody

If you are using mod_http_upload just make sure you are using the latest version. If you are using http_upload_external you should make sure that the script adds appropriate CORS headers.

Tigase

Configured in etc/cross-domain-policy.xml

Failing

0

None.

Passing

12