question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File transfer - no Access-Control-Allow-Origin header

See original GitHub issue

Which jsxc version number do you use?

last version

Which browser and browser version do you use?

Firefox 53.0.2

Do you have any browser plugins enabled?

firebug

Do you see any errors in your javascript console?

XMLHttpRequest cannot load https://192.168.1.200:5443/upload/5627c20b7457729e75b7a9bebf297dfa7d641042/DEcAUCpmlfBGDjuaHvQzlvHhSff43JjNPy4ugJHD/chat.txt. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://192.168.1.200’ is therefore not allowed access.

Config:
port: 5443
    module: ejabberd_http
    tls: true
    certfile: 'CERTFILE'
    request_handlers:     
      "": mod_http_upload     

  mod_http_upload:
    docroot: "/var/www"
    put_url: "https://192.168.1.200:5443/upload"
    custom_headers:
      "Access-Control-Allow-Origin": "*"
      "Access-Control-Allow-Methods": "OPTIONS, HEAD, GET, PUT"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sualkocommented, May 17, 2017

duplicate of #527

0reactions
sualkocommented, May 17, 2017

This was the first result on startpage: https://github.com/processone/ejabberd/issues/1482

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing "No 'Access-Control-Allow-Origin' Header Present"
This error occurs when a script on your website/web app attempts to make a request to a resource that isn't configured to accept...
Read more >
Reason: CORS header 'Access-Control-Allow-Origin' missing
The response to the CORS request is missing the required Access-Control-Allow-Origin header, which is used to determine whether or not the ...
Read more >
Resolve the "No 'Access-Control-Allow-Origin' header" ...
Run the following command to confirm the origin server returns the Access-Control-Allow-Origin header. Replace example.com with the required origin header.
Read more >
Why does my JavaScript code receive a "No 'Access ...
XMLHttpRequest cannot load http://myApiUrl/login. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' ...
Read more >
Fix To No Access-Control-Allow-Origin header is present Or ...
Fix To No Access-Control-Allow-Origin header is present Or Working With Cross Origin Request In Asp Net Web API · By using Microsoft.AspNet. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found