Browse Source

Start sample with HTTPS

WebRTC features are gated behind having a secure origin, but localhost
gets a pass. If trying to access the sample from a URL that doesn't look
like localhost, HTTPS is required.
Lance Stout 5 years ago
parent
commit
86626653b3
2 changed files with 2 additions and 1 deletions
  1. 1 0
      README.md
  2. 1 1
      package.json

+ 1 - 0
README.md

@@ -12,4 +12,5 @@ You can retrieve your API key by visiting [https://accounts.simplewebrtc.com](ht
 2. Edit `src/index.tsx` as described above.
 3. `npm start`
 4. Go to [https://localhost:3000/](https://localhost:3000)
+5. The sample uses a self-signed cert that you will need to accept.
 

+ 1 - 1
package.json

@@ -29,7 +29,7 @@
     "typescript": "^3.3.3333"
   },
   "scripts": {
-    "start": "react-scripts start",
+    "start": "HTTPS=true react-scripts start",
     "build": "react-scripts build",
     "test": "react-scripts test",
     "eject": "react-scripts eject",