Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit a8841e1

Browse files
authored
Merge pull request #110 from jianjunz/hsts
Enable HSTS and specify encoding format for HTML pages.
2 parents c9d67ea + 87edf18 commit a8841e1

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/samples/conference/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
-->
2828

2929
<html>
30-
30+
<meta charset="utf-8">
3131
<head>
3232
<title>Intel&reg; Collaboration Suite for WebRTC Conference Sample</title>
3333
</head>

src/samples/conference/samplertcservice.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ app.use(bodyParser.json());
4848
app.use(bodyParser.urlencoded({
4949
extended: true
5050
}));
51+
app.disable('x-powered-by');
5152

5253
app.use(function(req, res, next) {
5354
res.header('Access-Control-Allow-Origin', '*');
5455
res.header('Access-Control-Allow-Methods', 'POST, GET, PUT, PATCH, OPTIONS, DELETE');
5556
res.header('Access-Control-Allow-Headers', 'origin, content-type');
57+
res.header('Strict-Transport-Security', 'max-age=1024000; includeSubDomain');
5658
if (req.method == 'OPTIONS') {
5759
res.send(200);
5860
} else {

src/samples/p2p/peercall.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<!DOCTYPE html>
88

99
<head>
10+
<meta charset="utf-8">
1011
<title>Intel&reg; Collaboration Suite for WebRTC P2P Direct Call Sample</title>
1112
<style>
1213
html{

0 commit comments

Comments
 (0)