René's URL Explorer Experiment


Title: Angular2 Throws Security Exceptions under the CSP (Content Security Policy) · Issue #1744 · angular/angular · GitHub

Open Graph Title: Angular2 Throws Security Exceptions under the CSP (Content Security Policy) · Issue #1744 · angular/angular

X Title: Angular2 Throws Security Exceptions under the CSP (Content Security Policy) · Issue #1744 · angular/angular

Description: I build and evangelize building mobile Chrome Apps using CCA. I do this extensively with Angular 1.x today but right now Angular 2 causes me some problems. It does not seem to support a "CSP mode" like angular 1x. This code runs just fin...

Open Graph Description: I build and evangelize building mobile Chrome Apps using CCA. I do this extensively with Angular 1.x today but right now Angular 2 causes me some problems. It does not seem to support a "CSP mode" ...

X Description: I build and evangelize building mobile Chrome Apps using CCA. I do this extensively with Angular 1.x today but right now Angular 2 causes me some problems. It does not seem to support a "CSP m...

Mail addresses
notifications@github.com
notifications@github.com

Opengraph URL: https://github.com/angular/angular/issues/1744

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular2 Throws Security Exceptions under the CSP (Content Security Policy)","articleBody":"I build and evangelize building mobile Chrome Apps using CCA. I do this extensively with Angular 1.x today but right now Angular 2 causes me some problems.  It does not seem to support a \"CSP mode\" like angular 1x.\n\nThis code runs just fine when I include the library locally, but it throws a security error when I put any variables into my templates.\n\n```\nfunction AppComponent() {\n  this.name = \"testing\";\n}\n\nAppComponent.annotations = [\n  new angular.Component({\n    selector: 'my-app'\n  }),\n  new angular.View({\n    template: '\u003ch1>My first Angular 2 App\u003c/h1>'\n  })\n];\n\ndocument.addEventListener('DOMContentLoaded', function() {\n  angular.bootstrap(AppComponent);\n});\n```\n\nThis works just fine under the CSP, but when I add the variable to the template:\n\n```\nfunction AppComponent() {\n  this.name = \"testing\";\n}\n\nAppComponent.annotations = [\n  new angular.Component({\n    selector: 'my-app'\n  }),\n  new angular.View({\n    template: '\u003ch1>My first Angular 2 {{name}} App\u003c/h1>'\n  })\n];\n\ndocument.addEventListener('DOMContentLoaded', function() {\n  angular.bootstrap(AppComponent);\n});\n```\n\nI get the following error:\n\n```\nRefused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: \"default-src 'self' chrome-extension-resource:\". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.\n```\n","author":{"url":"https://github.com/StephenFluin","@type":"Person","name":"StephenFluin"},"datePublished":"2015-05-07T20:40:39Z","url":"https://github.com/angular/angular/issues/1744"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cb109203-972c-72d3-fcd9-78f93512291f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBAE4:24014:1047722:163B25A:6B055E9C
html-safe-nonce0c34137622a08fc2c21834313fc5d6a554e4126bb223a5284510f968a13f4d29
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUU0OjI0MDE0OjEwNDc3MjI6MTYzQjI1QTo2QjA1NUU5QyIsInZpc2l0b3JfaWQiOiIxMDQxOTQyODI0MjM4ODAwNTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacac5d399950e269a1a3f1935b6744429a6a059015be07e4c458f4a97a1713d3a9
hovercard-subject-tagissue:74121395
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/1744/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f23c3c8f81b82301c4fc975b7828b10a1ce2e2aa0d9e28cd77ec5b8d13037b6b/angular/angular/issues/1744
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f23c3c8f81b82301c4fc975b7828b10a1ce2e2aa0d9e28cd77ec5b8d13037b6b/angular/angular/issues/1744
og:image:altI build and evangelize building mobile Chrome Apps using CCA. I do this extensively with Angular 1.x today but right now Angular 2 causes me some problems. It does not seem to support a "CSP mode" ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameStephenFluin
hostnamegithub.com
expected-hostnamegithub.com
None8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8327739ac0648b9c3c722b5f401f7338553936b8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/1744#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F1744
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F1744
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/1744
Reloadhttps://github.com/angular/angular/issues/1744
Reloadhttps://github.com/angular/angular/issues/1744
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/1744
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/1744
Angular2 Throws Security Exceptions under the CSP (Content Security Policy)https://github.com/angular/angular/issues/1744#top
https://github.com/StephenFluin
StephenFluinhttps://github.com/StephenFluin
on May 7, 2015https://github.com/angular/angular/issues/1744#issue-74121395
StephenFluinhttps://github.com/StephenFluin
on May 7, 2015https://github.com/angular/angular/issues/1744#event-299710803
https://github.com/calebboyd
calebboydhttps://github.com/calebboyd
on May 8, 2015https://github.com/angular/angular/issues/1744#issuecomment-100057180
Source annotationshttps://github.com/angular/angular/blob/master/modules/angular2/src/change_detection/interfaces.ts#L15-L39
https://github.com/StephenFluin
StephenFluinhttps://github.com/StephenFluin
on May 9, 2015https://github.com/angular/angular/issues/1744#issuecomment-100422592
https://github.com/alexpods
alexpodshttps://github.com/alexpods
on May 9, 2015https://github.com/angular/angular/issues/1744#issuecomment-100525746
plunkerhttp://plnkr.co/edit/evaE0SZBkGkTvsIYi39U?p=preview
@IgorMinarhttps://github.com/IgorMinar
@pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
https://github.com/azasypkin
azasypkinhttps://github.com/azasypkin
on May 30, 2015https://github.com/angular/angular/issues/1744#issuecomment-107048664
https://github.com/azasypkin
azasypkinhttps://github.com/azasypkin
on May 30, 2015https://github.com/angular/angular/issues/1744#issuecomment-107065756
angular/modules/angular2/src/reflection/reflection_capabilities.tshttps://github.com/angular/angular/blob/c8947d77bf2125b44f8501788318e7eeb1043de7/modules/angular2/src/reflection/reflection_capabilities.ts#L102-L110
c8947d7https://github.com/angular/angular/commit/c8947d77bf2125b44f8501788318e7eeb1043de7
mheveryhttps://github.com/mhevery
comp: docshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20docs%22
P4: nice to havehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P4%3A%20nice%20to%20have%22
on Jun 1, 2015https://github.com/angular/angular/issues/1744#event-319397402
https://github.com/mhevery
mheveryhttps://github.com/mhevery
on Jun 1, 2015https://github.com/angular/angular/issues/1744#issuecomment-107718329
https://angular.io/docs/js/latest/api/change_detection/ChangeDetection-class.htmlhttps://angular.io/docs/js/latest/api/change_detection/ChangeDetection-class.html
mheveryhttps://github.com/mhevery
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 1, 2015https://github.com/angular/angular/issues/1744#event-319398053
https://github.com/bestander
bestanderhttps://github.com/bestander
on Sep 3, 2015https://github.com/angular/angular/issues/1744#issuecomment-137332812
@azasypkinhttps://github.com/azasypkin
https://github.com/azasypkin
azasypkinhttps://github.com/azasypkin
on Sep 19, 2015https://github.com/angular/angular/issues/1744#issuecomment-141683916
@bestanderhttps://github.com/bestander
https://github.com/bestander
bestanderhttps://github.com/bestander
on Sep 20, 2015https://github.com/angular/angular/issues/1744#issuecomment-141723726
@azasypkinhttps://github.com/azasypkin
https://github.com/azasypkin
azasypkinhttps://github.com/azasypkin
on Sep 20, 2015https://github.com/angular/angular/issues/1744#issuecomment-141752974
@bestanderhttps://github.com/bestander
https://github.com/bestander
bestanderhttps://github.com/bestander
on Sep 20, 2015https://github.com/angular/angular/issues/1744#issuecomment-141755688
@bestanderhttps://github.com/bestander
https://github.com/bestanderhttps://github.com/bestander
#1744 (comment)https://github.com/angular/angular/issues/1744#issuecomment-141752974
https://github.com/azasypkin
azasypkinhttps://github.com/azasypkin
on Sep 20, 2015https://github.com/angular/angular/issues/1744#issuecomment-141756064
@mheveryhttps://github.com/mhevery
https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Default_CSP_restrictions#Function_constructorhttps://developer.mozilla.org/en-US/docs/Web/Security/CSP/Default_CSP_restrictions#Function_constructor
angular/modules/angular2/src/core/reflection/reflection_capabilities.tshttps://github.com/angular/angular/blob/c2a60f1624ad54c424a2a9f6425420edd84e97b8/modules/angular2/src/core/reflection/reflection_capabilities.ts#L157
c2a60f1https://github.com/angular/angular/commit/c2a60f1624ad54c424a2a9f6425420edd84e97b8
https://github.com/mhevery
mheveryhttps://github.com/mhevery
on Sep 20, 2015https://github.com/angular/angular/issues/1744#issuecomment-141845644
https://github.com/flyingmutant
flyingmutanthttps://github.com/flyingmutant
on Nov 17, 2015https://github.com/angular/angular/issues/1744#issuecomment-157500711
@mheveryhttps://github.com/mhevery
https://github.com/IgorMinar
IgorMinarhttps://github.com/IgorMinar
on Nov 18, 2015https://github.com/angular/angular/issues/1744#issuecomment-157628273
@vsavkinhttps://github.com/vsavkin
@wardbellhttps://github.com/wardbell
https://github.com/azasypkin
azasypkinhttps://github.com/azasypkin
on Jan 3, 2016https://github.com/angular/angular/issues/1744#issuecomment-168528365
@IgorMinarhttps://github.com/IgorMinar
@vsavkinhttps://github.com/vsavkin
@wardbellhttps://github.com/wardbell
https://github.com/IgorMinar
IgorMinarhttps://github.com/IgorMinar
on Jan 3, 2016https://github.com/angular/angular/issues/1744#issuecomment-168540571
@IgorMinarhttps://github.com/IgorMinar
https://github.com/IgorMinarhttps://github.com/IgorMinar
@vsavkinhttps://github.com/vsavkin
https://github.com/vsavkinhttps://github.com/vsavkin
@wardbellhttps://github.com/wardbell
https://github.com/wardbellhttps://github.com/wardbell
#1744 (comment)https://github.com/angular/angular/issues/1744#issuecomment-168528365
https://github.com/natizlp
natizlphttps://github.com/natizlp
on Apr 7, 2016https://github.com/angular/angular/issues/1744#issuecomment-206926954
@IgorMinarhttps://github.com/IgorMinar
@vsavkinhttps://github.com/vsavkin
@wardbellhttps://github.com/wardbell
https://github.com/hjliang
hjlianghttps://github.com/hjliang
on Jul 7, 2016https://github.com/angular/angular/issues/1744#issuecomment-230967201
@natizlphttps://github.com/natizlp
https://github.com/hjliang/angular2-csphttps://github.com/hjliang/angular2-csp
https://github.com/goleary
golearyhttps://github.com/goleary
on Jul 27, 2016https://github.com/angular/angular/issues/1744#issuecomment-235739736
@hjlianghttps://github.com/hjliang
@IgorMinarhttps://github.com/IgorMinar
@mheveryhttps://github.com/mhevery
@vsavkinhttps://github.com/vsavkin
@wardbellhttps://github.com/wardbell
https://github.com/xnnkmd
xnnkmdhttps://github.com/xnnkmd
on May 19, 2017https://github.com/angular/angular/issues/1744#issuecomment-302686338
#11939https://github.com/angular/angular/issues/11939
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 11, 2019https://github.com/angular/angular/issues/1744#issuecomment-530430087
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 11, 2019https://github.com/angular/angular/issues/1744#event-2626149105
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/1744
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/1744
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.