Title: Support for CSP Compliant Production Builds · Issue #1279 · angular/angular-cli · GitHub
Open Graph Title: Support for CSP Compliant Production Builds · Issue #1279 · angular/angular-cli
X Title: Support for CSP Compliant Production Builds · Issue #1279 · angular/angular-cli
Description: This is really more of a feature request. 1. OS? Mac OS // El Capitan 2. ng version? ➜ dist git:(angular2) ng --version (node:17937) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, pleas...
Open Graph Description: This is really more of a feature request. 1. OS? Mac OS // El Capitan 2. ng version? ➜ dist git:(angular2) ng --version (node:17937) fs: re-evaluating native module sources is not supported. If you...
X Description: This is really more of a feature request. 1. OS? Mac OS // El Capitan 2. ng version? ➜ dist git:(angular2) ng --version (node:17937) fs: re-evaluating native module sources is not supported. If you...
Opengraph URL: https://github.com/angular/angular-cli/issues/1279
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for CSP Compliant Production Builds","articleBody":"This is really more of a feature request.\n### 1. OS?\n\nMac OS // El Capitan\n### 2. ng version?\n\n```\n➜ dist git:(angular2) ng --version\n(node:17937) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.\nCould not start watchman; falling back to NodeWatcher for file system events.\nVisit http://ember-cli.com/user-guide/#watchman for more info.\nangular-cli: 1.0.0-beta.8\nnode: 6.2.2\nos: darwin x64\n```\n### 3. Repro steps. Was this an app that wasn't created using the CLI? What change did you\n\n`ng build` and `ng build -prod` both produce an `index.html` that has inline JavaScript:\n\n```\n \u003cscript>\n System.import('system-config.js').then(function () {\n System.import('main');\n }).catch(console.error.bind(console));\n \u003c/script>\n```\n\nThis makes applications built using `ng build -prod` incompatible with CSPs that disable unsafe content sources (e.g. `unsafe-inline` and `unsafe-eval`), having to enable these unsafe sources negates the security benefits of having a CSP.\n\nRemoving these inline scripts significantly increases the complexity of the builds (afaik) since there is no support for user-defined tasks, nor an easy way to use `systemjs`'s bundler which is capable of creating CSP-compatible builds.\n### 4. The log given by the failure. Normally this include a stack trace and some\n\nN/A\n#### 5. Mention any other details that might be useful.\n\nThe desired behavior here is for `angular-cli` production builds to support CSP and increase application security by default.\n","author":{"url":"https://github.com/moloch--","@type":"Person","name":"moloch--"},"datePublished":"2016-07-04T20:56:34Z","url":"https://github.com/angular/angular-cli/issues/1279"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5bb50f25-0c17-2914-9423-506ddee31ca9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE10:2A8F8B:2954D99:364E7B7:6B055E21 |
| html-safe-nonce | 23571700153ed6f739313dc0228689c79fd2c34031fa3caf1a49cdbac514aaee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTEwOjJBOEY4QjoyOTU0RDk5OjM2NEU3Qjc6NkIwNTVFMjEiLCJ2aXNpdG9yX2lkIjoiNjc3MzY3NDAyNjE4NDU2NDI1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f656de32181338a0695dc30935bc3578d0b82c32dfc09ef1130de5f724ba7f99 |
| hovercard-subject-tag | issue:163741838 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/1279/issue_layout |
| twitter:image | https://opengraph.githubassets.com/65ae938cea2048cf27d3cd85cd032067f9cdb497d1515bab73668a1ba3a2bec9/angular/angular-cli/issues/1279 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/65ae938cea2048cf27d3cd85cd032067f9cdb497d1515bab73668a1ba3a2bec9/angular/angular-cli/issues/1279 |
| og:image:alt | This is really more of a feature request. 1. OS? Mac OS // El Capitan 2. ng version? ➜ dist git:(angular2) ng --version (node:17937) fs: re-evaluating native module sources is not supported. If you... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | moloch-- |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8327739ac0648b9c3c722b5f401f7338553936b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width