Title: Need a way to add response headers to service worker responses · Issue #31330 · angular/angular · GitHub
Open Graph Title: Need a way to add response headers to service worker responses · Issue #31330 · angular/angular
X Title: Need a way to add response headers to service worker responses · Issue #31330 · angular/angular
Description: 🚀 feature request Relevant Package This feature request is for @angular/pwa Description Need a way to add response headers to responses cached and returned by service worker responses. While using service workers with a CSP, we can run i...
Open Graph Description: 🚀 feature request Relevant Package This feature request is for @angular/pwa Description Need a way to add response headers to responses cached and returned by service worker responses. While using ...
X Description: 🚀 feature request Relevant Package This feature request is for @angular/pwa Description Need a way to add response headers to responses cached and returned by service worker responses. While using ...
Opengraph URL: https://github.com/angular/angular/issues/31330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need a way to add response headers to service worker responses","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄 \r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🚀 feature request\r\n\r\n### Relevant Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->\r\n\u003c!-- ✍️edit: --> This feature request is for @angular/pwa\r\n\r\n\r\n### Description\r\nNeed a way to add response headers to responses cached and returned by service worker responses. While using service workers with a CSP, we can run into issues like the one described [here](https://qubyte.codes/blog/content-security-policy-and-service-workers) whose solution is to add a different CSP header for responses returned by service workers as described [here](https://twitter.com/jaffathecake/status/988402162312114177).\r\n\r\nI am facing a similar issue as described in the first link above and if can add a header like 'Content-Security-Policy: connect-src *;' to the cached responses returned by the service worker it should solve the problem.\r\n\r\n### Describe the solution you'd like\r\nA way to add response headers for responses returned by a service worker\r\n\r\n### Describe alternatives you've considered\r\n\r\n1. Tried using angular HttpInterceptors to see if I could intercept the service worker response and add the appropriate header.\r\n2. Using plain JS instead of the angular package to have more control over the service worker responses.\r\n","author":{"url":"https://github.com/vinay-akkipet","@type":"Person","name":"vinay-akkipet"},"datePublished":"2019-06-28T10:04:02Z","url":"https://github.com/angular/angular/issues/31330"}
| 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:43e5b7ac-d53f-ae5a-6110-0172838e24fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF1C:2E5652:EF76B2:1315456:6B010D72 |
| html-safe-nonce | e5d89d68566ed80f65ab7e47ccd143c4137abcd857685437fabd7b882c9ac774 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjFDOjJFNTY1MjpFRjc2QjI6MTMxNTQ1Njo2QjAxMEQ3MiIsInZpc2l0b3JfaWQiOiI3ODM4NjMwNDQzMDQwNzA1OTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d48a7729ae5b20afdc20a09d5b4db67318d8c918bebf74388674ffcd9fb191a7 |
| hovercard-subject-tag | issue:461958877 |
| 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/31330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/86bc409a07b46c9b8402b6a1c4067397ad1b40451816ee4cacf2c7acf8e872ad/angular/angular/issues/31330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/86bc409a07b46c9b8402b6a1c4067397ad1b40451816ee4cacf2c7acf8e872ad/angular/angular/issues/31330 |
| og:image:alt | 🚀 feature request Relevant Package This feature request is for @angular/pwa Description Need a way to add response headers to responses cached and returned by service worker responses. While using ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vinay-akkipet |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width