rsnext/test/production
Wyatt Johnson c6ef857d57
Subresource Integrity for App Directory (#39729)
<!--
Thanks for opening a PR! Your contribution is much appreciated.
In order to make sure your PR is handled as smoothly as possible we
request that you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

This serves to add support for [Subresource
Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)
hashes for scripts added from the new app directory. This also has
support for utilizing nonce values passed from request headers (expected
to be generated per request in middleware) in the bootstrapping scripts
via the `Content-Security-Policy` header as such:

```
Content-Security-Policy: script-src 'nonce-2726c7f26c'
```

Which results in the inline scripts having a new `nonce` attribute hash
added. These features combined support for setting an aggressive Content
Security Policy on scripts loaded.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [x] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The examples guidelines are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)

Co-authored-by: Steven <steven@ceriously.com>
2022-09-08 15:17:15 -07:00
..
ci-missing-typescript-deps Remove un-necessary internal jest-worker error during ts/lint error (#39886) 2022-08-24 09:29:27 -05:00
custom-error-500 Fix handling with custom _error and pages/500 (#40110) 2022-08-30 18:14:12 -05:00
dependencies-can-use-env-vars-in-middlewares feat(middleware)!: forbids middleware response body (#36835) 2022-05-19 22:02:20 +00:00
disable-fallback-polyfills feat: add experimental.fallbackNodePolyfills flag (#39248) 2022-08-26 23:11:57 +00:00
edge-runtime-is-addressable Upgrade edge-runtime + make EdgeRuntime value overridable with an env var on compilation (#38331) 2022-07-12 15:18:59 +00:00
emit-decorator-metadata Add decoratorMetadata flag if enabled by tsconfig (#32914) 2022-02-06 16:48:09 +00:00
enoent-during-require Ensure ENOENT error is not ignored when loading pages (#37486) 2022-06-06 14:35:26 -04:00
escheck-output Fix failing escheck test (#39365) 2022-08-05 12:30:42 -05:00
eslint-plugin-deps Upgrade typescript to 4.8.2 (#39979) 2022-08-29 16:56:02 +00:00
exported-runtimes-value-validation feat: enhance warning messages about unanalyzable config field (#38907) 2022-07-22 19:31:47 +00:00
fallback-export-error Update check for fallback pages during export (#33323) 2022-01-17 14:44:45 +00:00
fatal-render-errror Ensure default _app is used when falling back to default _error (#39467) 2022-08-10 11:36:22 -05:00
generate-middleware-source-maps [edge] enable edge compiler source maps by default (#38365) 2022-07-06 18:17:57 +00:00
jest chore: use pnpm install in tests (#37712) 2022-06-16 18:08:07 +00:00
middleware-environment-variables-in-node-server-reflect-the-usage-inference feat(middleware)!: forbids middleware response body (#36835) 2022-05-19 22:02:20 +00:00
middleware-is-not-allowed-when-using-serverless-target Throw an error when target: 'serverless' is used with Middleware (#37819) 2022-06-19 13:17:18 +00:00
middleware-typescript Upgrade typescript to 4.8.2 (#39979) 2022-08-29 16:56:02 +00:00
minimal-mode-response-cache Move outputStandalone config (#37994) 2022-06-24 14:58:35 -05:00
pnpm-support Move outputStandalone config (#37994) 2022-06-24 14:58:35 -05:00
postcss-plugin-config-as-string allow to provide postcss plugin options as a string (#35173) 2022-04-08 16:58:50 +00:00
prerender-prefetch Add config for opting out of optimistic client cache behavior (#38774) 2022-07-26 10:27:39 -05:00
reading-request-body-in-middleware feat(middleware)!: forbids middleware response body (#36835) 2022-05-19 22:02:20 +00:00
required-server-files Fix tracing edge-runtime dependencies (#39009) 2022-07-26 10:47:34 -05:00
standalone-mode-and-optimizecss Move outputStandalone config (#37994) 2022-06-24 14:58:35 -05:00
typescript-basic Update to stable: next/future/image, remotePatterns, unoptimized (#40142) 2022-08-31 22:44:17 +00:00
required-server-files-i18n.test.ts Subresource Integrity for App Directory (#39729) 2022-09-08 15:17:15 -07:00
required-server-files.test.ts Subresource Integrity for App Directory (#39729) 2022-09-08 15:17:15 -07:00