Title: Avoid using new Function() · Issue #47 · blueimp/JavaScript-Templates · GitHub
Open Graph Title: Avoid using new Function() · Issue #47 · blueimp/JavaScript-Templates
X Title: Avoid using new Function() · Issue #47 · blueimp/JavaScript-Templates
Description: The new Function(...), user here: https://github.com/blueimp/JavaScript-Templates/blob/master/js/tmpl.js#L24 is a bad practice, and disabled by default if using Content Security Policy (see here) Can this be replaced? Otherwise who uses ...
Open Graph Description: The new Function(...), user here: https://github.com/blueimp/JavaScript-Templates/blob/master/js/tmpl.js#L24 is a bad practice, and disabled by default if using Content Security Policy (see here) C...
X Description: The new Function(...), user here: https://github.com/blueimp/JavaScript-Templates/blob/master/js/tmpl.js#L24 is a bad practice, and disabled by default if using Content Security Policy (see here) C...
Opengraph URL: https://github.com/blueimp/JavaScript-Templates/issues/47
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Avoid using new Function()","articleBody":"The `new Function(...)`, user here: https://github.com/blueimp/JavaScript-Templates/blob/master/js/tmpl.js#L24\r\n\r\nis a bad practice, and disabled by default if using Content Security Policy (see [here](https://developer.chrome.com/extensions/contentSecurityPolicy#JSEval))\r\n\r\nCan this be replaced? Otherwise who uses CSP must add `unsafe-eval` to use this library, allowing potential secutiry vulnerabilities.","author":{"url":"https://github.com/fmonts","@type":"Person","name":"fmonts"},"datePublished":"2019-11-29T17:19:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/47/JavaScript-Templates/issues/47"}
| 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:fc5ac888-f7cd-e28c-de92-56a140a7e400 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C406:1C0428:1375036:1B33260:6970D06C |
| html-safe-nonce | 2fedcc2bfe8f4bba970f560eea8e853303e7c22e66b768dd190313a38a2bafc9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDA2OjFDMDQyODoxMzc1MDM2OjFCMzMyNjA6Njk3MEQwNkMiLCJ2aXNpdG9yX2lkIjoiNTM5MDAxOTg5MDQ5ODI5Mzg2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5f82d7dd43cbf7879259617198de9c22f17ec7d62bfc0686a106e732474ff20b |
| hovercard-subject-tag | issue:530440390 |
| 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/blueimp/JavaScript-Templates/47/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f0398afd2cf0c114d4925cdc9008b0966bb3412911d3db24c7638a0e9e78fba/blueimp/JavaScript-Templates/issues/47 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f0398afd2cf0c114d4925cdc9008b0966bb3412911d3db24c7638a0e9e78fba/blueimp/JavaScript-Templates/issues/47 |
| og:image:alt | The new Function(...), user here: https://github.com/blueimp/JavaScript-Templates/blob/master/js/tmpl.js#L24 is a bad practice, and disabled by default if using Content Security Policy (see here) C... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fmonts |
| hostname | github.com |
| expected-hostname | github.com |
| None | 034aaee9edccd455c18591b13122193c6e12dc773e8a203be73abe934f3e3a72 |
| turbo-cache-control | no-preview |
| go-import | github.com/blueimp/JavaScript-Templates git https://github.com/blueimp/JavaScript-Templates.git |
| octolytics-dimension-user_id | 244586 |
| octolytics-dimension-user_login | blueimp |
| octolytics-dimension-repository_id | 2955224 |
| octolytics-dimension-repository_nwo | blueimp/JavaScript-Templates |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2955224 |
| octolytics-dimension-repository_network_root_nwo | blueimp/JavaScript-Templates |
| 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 | 52d1d534d0b88c64972e852deb460d09b433b8b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width