-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from jagaapple/release/v2.1.0
# New Features - Add support for Node.js 14 #36 - Add support for chain-case directive styles to CSP #40 # Changes and Fixes - Update dependencies #34 - Fix readme #37 - Fix `report-to` directive #38 - Fix metadata #39
- Loading branch information
Showing
51 changed files
with
32,450 additions
and
5,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.15.3 | ||
12.20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Head from "next/head"; | ||
import Link from "next/link"; | ||
|
||
const Page = () => ( | ||
<> | ||
<Head> | ||
<title>next-secure-headers Example (the second page)</title> | ||
</Head> | ||
|
||
<h1>The second page</h1> | ||
|
||
<hr /> | ||
|
||
<Link href="/"> | ||
<a>Move to the top page</a> | ||
</Link> | ||
</> | ||
); | ||
|
||
export default Page; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const { createSecureHeaders } = require("next-secure-headers"); | ||
|
||
module.exports = { | ||
poweredByHeader: false, | ||
i18n: { locales: ["en", "ja"], defaultLocale: "en", }, | ||
async headers() { | ||
return [ | ||
{ | ||
source: "/:path*", | ||
headers: createSecureHeaders({ | ||
contentSecurityPolicy: { | ||
directives: { | ||
defaultSrc: "'self'", | ||
styleSrc: ["'self'", "https://stackpath.bootstrapcdn.com"], | ||
}, | ||
}, | ||
forceHTTPSRedirect: [true, { maxAge: 60 * 60 * 24 * 4, includeSubDomains: true }], | ||
referrerPolicy: "same-origin", | ||
}), | ||
}, | ||
]; | ||
}, | ||
}; |
Oops, something went wrong.