secure-context

How to access an insecure websocket from a secure website?

元气小坏坏 提交于 2020-12-31 06:25:26
问题 TL;DR: A website is served over HTTPS and needs to access a WebSockets server over an unencrypted channel (ws:// url). The browser doesn't like this. Encrypting the websocket is possible, but inconvenient - there is no trusted authority which could sign the certificate and thus it will be needed to manually install it for every client. I'd like to leave that as the last resort. The website must be served over HTTPS and cannot be downgraded to HTTP. Is there any other way to bypass this

How to access an insecure websocket from a secure website?

时光怂恿深爱的人放手 提交于 2020-12-31 06:25:13
问题 TL;DR: A website is served over HTTPS and needs to access a WebSockets server over an unencrypted channel (ws:// url). The browser doesn't like this. Encrypting the websocket is possible, but inconvenient - there is no trusted authority which could sign the certificate and thus it will be needed to manually install it for every client. I'd like to leave that as the last resort. The website must be served over HTTPS and cannot be downgraded to HTTP. Is there any other way to bypass this

Redirect from HTTP to HTTPS using node.js/Express

余生颓废 提交于 2020-12-13 04:11:31
问题 Is there any way I can change my web app to listen on HTTPS instead of HTTP. I'm using node.js/express. I need it to listen on HTTPS because I'm using geolocation, which Chrome no longer supports unless being served from a secure context such as HTTPS. This is the current './bin/www' file which currently listens on HTTP. #!/usr/bin/env node var app = require('../app'); var debug = require('debug')('myapp:server'); var http = require('http'); var port = normalizePort(process.env.PORT || '9494'

Redirect from HTTP to HTTPS using node.js/Express

…衆ロ難τιáo~ 提交于 2020-12-13 04:11:29
问题 Is there any way I can change my web app to listen on HTTPS instead of HTTP. I'm using node.js/express. I need it to listen on HTTPS because I'm using geolocation, which Chrome no longer supports unless being served from a secure context such as HTTPS. This is the current './bin/www' file which currently listens on HTTP. #!/usr/bin/env node var app = require('../app'); var debug = require('debug')('myapp:server'); var http = require('http'); var port = normalizePort(process.env.PORT || '9494'

Redirect from HTTP to HTTPS using node.js/Express

帅比萌擦擦* 提交于 2020-12-13 04:11:29
问题 Is there any way I can change my web app to listen on HTTPS instead of HTTP. I'm using node.js/express. I need it to listen on HTTPS because I'm using geolocation, which Chrome no longer supports unless being served from a secure context such as HTTPS. This is the current './bin/www' file which currently listens on HTTP. #!/usr/bin/env node var app = require('../app'); var debug = require('debug')('myapp:server'); var http = require('http'); var port = normalizePort(process.env.PORT || '9494'

Redirect from HTTP to HTTPS using node.js/Express

给你一囗甜甜゛ 提交于 2020-12-13 04:11:05
问题 Is there any way I can change my web app to listen on HTTPS instead of HTTP. I'm using node.js/express. I need it to listen on HTTPS because I'm using geolocation, which Chrome no longer supports unless being served from a secure context such as HTTPS. This is the current './bin/www' file which currently listens on HTTP. #!/usr/bin/env node var app = require('../app'); var debug = require('debug')('myapp:server'); var http = require('http'); var port = normalizePort(process.env.PORT || '9494'

Can Firefox 76 be forced to consider .localhost subdomains as Secure Context without tls?

故事扮演 提交于 2020-12-06 03:03:01
问题 We are using .localhost domains for development of our applications, and we have multiple applications living at different domains. We are at point where we need to test features requiring pages to execute in Secure Context, i.e. Service Workers and Push API. Google Chrome for a past few versions has been marking all sites coming from .localhost domain as Secure Context, allowing local, hassle-free testing of Service Workers, Push API, etc. I cannot find a way to force Firefox 76 to consider

Can Firefox 76 be forced to consider .localhost subdomains as Secure Context without tls?

倾然丶 夕夏残阳落幕 提交于 2020-12-06 02:56:21
问题 We are using .localhost domains for development of our applications, and we have multiple applications living at different domains. We are at point where we need to test features requiring pages to execute in Secure Context, i.e. Service Workers and Push API. Google Chrome for a past few versions has been marking all sites coming from .localhost domain as Secure Context, allowing local, hassle-free testing of Service Workers, Push API, etc. I cannot find a way to force Firefox 76 to consider

Mixed content via XMLHttpRequest not blocked

感情迁移 提交于 2020-05-13 04:45:20
问题 Suppose the page below is loaded from https://127.0.100.1 . The page makes an XMLHttpRequest to http://127.0.100.2 . This seems like mixed content : The page is loaded over a secure connection and a resource is loaded over an insecure connection. Mixed content should be blocked by the browser. Yet, the page below works just fine.* Why does it work: Why isn't the request blocked? Update: Going beyond the accepted answer, browsers can be configured to block mixed content for such addresses. *

Mixed content via XMLHttpRequest not blocked

最后都变了- 提交于 2020-05-13 04:42:07
问题 Suppose the page below is loaded from https://127.0.100.1 . The page makes an XMLHttpRequest to http://127.0.100.2 . This seems like mixed content : The page is loaded over a secure connection and a resource is loaded over an insecure connection. Mixed content should be blocked by the browser. Yet, the page below works just fine.* Why does it work: Why isn't the request blocked? Update: Going beyond the accepted answer, browsers can be configured to block mixed content for such addresses. *