Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2021-03-23のJS: Node.js 15.12.0(fs.promisesのパフォーマンス改善)、strict CSP、CSS Auditing Tools #846

Merged
merged 23 commits into from Mar 23, 2021

Conversation

azu
Copy link
Member

@azu azu commented Mar 23, 2021

Node.js 15.12.0がリリースされました。

fsreadFile/writeFileに対してPromise版のfs.promisesreadFile/writeFileが遅くなるというIssueがあります。

Node.js 15.12.0ではこのパフォーマンス問題の改善が含まれています。

その他にはcrypto.create{Public,Private}KeyがJWKオブジェクトをサポート、AbortSignal.abort()の実装、workerモジュールに{get,set}EnvironmentDataが追加されています。


Mitigate cross-site scripting (XSS) with a strict Content Security Policy (CSP)という記事では、Content Security Policy (CSP)を使ったXSSの影響を軽減するアプローチについて書かれています。

CSPには、特定のURLを許可リスト方式で扱う設定がありますが、許可したURLにJSONPなどのエンドポイントがあるとバイパスされる問題が知られています。

そのため、nonceベースかhashベースのstrictなCSP設定をすることで、CSPがバイパスされる可能性は低くなります。
この記事では、nonceベースとhashベースのstrict CSP設定をどのようにするかについて書かれています。


CSS Auditing Tools — Smashing Magazineという記事では、CSSのAuditツールについてまとめられています。

それぞれのツールの紹介やどのような項目を調べられるのかについてまとめられています。

@azu azu merged commit 6cfc3c4 into develop Mar 23, 2021
@azu azu deleted the jser-week-532 branch March 23, 2021 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant