Refused to connect to 'wss://live.mysite.com:3000/' because it violates the following Content Security Policy directive:

 if (navigator.mediaDevices.getUserMedia) {
    navigator.mediaDevices.getUserMedia(constraints)
      .then(stream => {
        localStream = stream;
        document.getElementById('localVideo').srcObject = stream;
      }).catch(errorHandler)

      // set up websocket and message all existing clients
      .then(() => {
        serverConnection = new WebSocket('wss://' + window.location.hostname + ':' + WS_PORT);
        serverConnection.onmessage = gotMessageFromServer;
        serverConnection.onopen = event => {
          serverConnection.send(JSON.stringify({ 'displayName': localDisplayName, 'uuid': localUuid, 'dest': 'all' }));
        }
      }).catch(errorHandler);

  } else {
    alert('Your browser does not support getUserMedia API');
  }
}

I have configured SSL but not working.
I have tried meta tag but also didn’t work.

92 thoughts on “Refused to connect to 'wss://live.mysite.com:3000/' because it violates the following Content Security Policy directive:”

  1. Pingback: priligy
  2. You can certainly see your skills within the work
    you write. The sector hopes for more passionate writers like you who are
    not afraid to mention how they believe. All the time
    follow your heart.

    Reply
  3. Thanks for every other informative site. The place else could
    I am getting that type of information written in such an ideal manner?
    I have a project that I am just now working on, and I have been on the glance out for such info.

    Reply
  4. I just like the helpful information you supply in your articles.
    I will bookmark your blog and check once more here frequently.
    I’m quite certain I will be told lots of new stuff proper right here!
    Good luck for the following!

    Reply
  5. Whats up are using WordPress for your site platform?
    I’m new to the blog world but I’m trying to get started and create my own. Do you require any coding expertise to make your own blog?
    Any help would be really appreciated!

    Reply
  6. I was wondering if you ever thought of changing the layout
    of your site? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way
    of content so people could connect with it better. Youve got an awful lot of text for only having one or two images.
    Maybe you could space it out better? scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

    Reply
  7. Pingback: stromectol liquid
  8. Pingback: drug ivermectin

Leave a Comment