You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# ToolMate Changelog
2
2
3
+
## 1.4.0 - 2022-05-14
4
+
### Added
5
+
- Craft domains (i.e. Craft ID and the plugin store API) are now automatically included in the `connect-src` directive for control panel requests
6
+
-`unsafe-inline` directives are now added automatically for Yii error pages
7
+
### Fixed
8
+
- Fixes an issue where unhashed CSP nonces would not be included in the actual CSP header, on Craft 4.0
9
+
### Changed
10
+
- Refactored logic concerning how and when the CSP header is set
11
+
3
12
## 1.3.1 - 2022-05-12
4
13
### Fixed
5
14
- Fixed an issue where ToolMate failed to include the `'unsafe-inline'` policy resource for the `style-src` CSP directive, for site requests where the Yii debug toolbar is enabled
if (Craft::$app->getRequest()->getIsSiteRequest()) {
61
+
if ($request->getIsSiteRequest()) {
57
62
// If the Yii debug toolbar is visible on the front end, we unfortunately need to set the `unsafe-inline` policy for the script-src and style-src directive
63
+
// Also include them if the Yii error page is returned (i.e. it's an error response and dev mode is enabled)
0 commit comments