Coder Social home page Coder Social logo

cross domain request was not possible. Either your BOSH server does not send any Access-Control-Allow-Origin header or the content-security-policy (CSP) blocks your request. The safest way is still to use Apache ProxyRequest or Nginx proxy_pass. about jsxc HOT 1 OPEN

S0ulf3re avatar S0ulf3re commented on June 9, 2024
cross domain request was not possible. Either your BOSH server does not send any Access-Control-Allow-Origin header or the content-security-policy (CSP) blocks your request. The safest way is still to use Apache ProxyRequest or Nginx proxy_pass.

from jsxc.

Comments (1)

DanScharon avatar DanScharon commented on June 9, 2024

two thoughts:

  • have you tried to upgrade Prosody to 0.12? It comes with CORS support for BOSH by default
  • you have a typo in your rewrite rule. It should say https:// instead of http:// But I'd recommend proxying instead of rewrite anyways, so it should rather look like this:
  RequestHeader set X-Forwarded-Proto "https"
  ProxyPreserveHost On
  ProxyPass /  http://localhost:5280/

and you need to enable these apache modules:

  • proxy
  • proxy_http

And in the global prosody config you need to add localhost to the trusted_proxies:

trusted_proxies = { "127.0.0.1", "::1" }

from jsxc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.