Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https support for karma server #581

Closed
kpe opened this issue Jun 18, 2013 · 4 comments
Closed

https support for karma server #581

kpe opened this issue Jun 18, 2013 · 4 comments

Comments

@kpe
Copy link

kpe commented Jun 18, 2013

It would be nice, if a browser could connect to the karma server through https. This would come handy, if your unit test are using the GetUserMedia API. At least in Chrome one could skip/remember the security prompt/warning, if https is used. Without https you have to manually accept/click the security warning.

So is there any way to make karma serve https instead of http?

@maksimr
Copy link
Contributor

maksimr commented Nov 20, 2013

Can I run karma server on https?

@ka2er
Copy link

ka2er commented Nov 20, 2013

+1 it would be helpfull

JayBerlin pushed a commit to JayBerlin/karma that referenced this issue Aug 8, 2014
Add config.protocol = 'http' or 'https' to indicate running Karma server in
http or https mode (to ensure secure cookies are handled properly from the
proxied urls).

Add config.cert { key: 'file_name', cert: 'file_name' } to identify the .pem
files to use for the server certificate.

This fix requires node-http-proxy from https://github.com/jayv/node-http-proxy
as this is the only http-proxy implementation that properly supports rewriting
the Location headers.

Closes karma-runner#581
JayBerlin pushed a commit to JayBerlin/karma that referenced this issue Aug 8, 2014
Add 'pem' dependency to allow for creating one-time certificates
when config.cert.key/cert are not specified.

Cleanup of some lint errors (oops)

Closes karma-runner#581
JayBerlin pushed a commit to JayBerlin/karma that referenced this issue Aug 8, 2014
JayBerlin pushed a commit to JayBerlin/karma that referenced this issue Aug 15, 2014
Add tests to validate configuration settings are properly handled and
refactor one-time certificate handling a little to make it easier to
test.

Closes karma-runner#581
@subhash85
Copy link

+1

@dignifiedquire
Copy link
Member

Fixed in the latest canary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants