Revert "Add require-corp header" (#580)
* Revert "Fixes #560 (#571)"
This reverts commit f81f662773
.
* add details for bumping
This commit is contained in:
Родитель
adceb52ab0
Коммит
a78214dff4
33
CHANGELOG.md
33
CHANGELOG.md
|
@ -1,46 +1,62 @@
|
|||
# Changelog
|
||||
|
||||
## 0.4.13 (December 11, 2023)
|
||||
|
||||
- Revert `require-corp` header to fix iframe, video, and image linking [#579](https://github.com/microsoft/vscode-livepreview/issues/579) [#578](https://github.com/microsoft/vscode-livepreview/issues/578) [#577](https://github.com/microsoft/vscode-livepreview/issues/577)
|
||||
|
||||
## 0.4.12 (December 6, 2023)
|
||||
|
||||
- Progress on adding CORP headers for `COI=true` on codespaces [#560](https://github.com/microsoft/vscode-livepreview/issues/560)
|
||||
|
||||
## 0.4.11 (October 4, 2023)
|
||||
|
||||
- Fix 401 on Codespaces. [#546](https://github.com/microsoft/vscode-livepreview/issues/546)
|
||||
- Support `Content-Length` header. [#549](https://github.com/microsoft/vscode-livepreview/issues/549)
|
||||
|
||||
## 0.4.10 (August 3, 2023)
|
||||
|
||||
- Fix silent fail on custom external browser not found. [#421](https://github.com/microsoft/vscode-livepreview/issues/421)
|
||||
|
||||
## 0.4.9 (July 5, 2023)
|
||||
|
||||
- Fix custom external browser open in remote. [#517](https://github.com/microsoft/vscode-livepreview/issues/517)
|
||||
- Fix out-of-workspace file external browser preview. [#509](https://github.com/microsoft/vscode-livepreview/issues/509)
|
||||
- Reduce injected script line number clobber for external browser preview. [#508](https://github.com/microsoft/vscode-livepreview/issues/508)
|
||||
|
||||
## 0.4.8 (May 3, 2023)
|
||||
|
||||
- Add option to customize HTTP headers to support cross-origin isolation. [#375](https://github.com/microsoft/vscode-livepreview/issues/375)
|
||||
- Edit logic for workspace find for `livePreview.start` [#455](https://github.com/microsoft/vscode-livepreview/issues/455)
|
||||
|
||||
## 0.4.7 (March 15, 2023)
|
||||
|
||||
- Fixed out-of-workspace preview for UNIX paths. [#464](https://github.com/microsoft/vscode-livepreview/issues/464)
|
||||
|
||||
## 0.4.6 (March 1, 2023)
|
||||
|
||||
- Added `livePreview.previewDebounceDelay` setting to control refresh debounce. Set 50ms default debounce. [#174](https://github.com/microsoft/vscode-livepreview/issues/174)
|
||||
- Fixed page history skip on non-html page. [#444](https://github.com/microsoft/vscode-livepreview/issues/444)
|
||||
- Fixed page history skip on non-html page. [#444](https://github.com/microsoft/vscode-livepreview/issues/444)
|
||||
- Changed `livePreview.defaultPreviewPath` to use relative path and be scoped to resource. [#274](https://github.com/microsoft/vscode-livepreview/issues/274) [#438](https://github.com/microsoft/vscode-livepreview/issues/438)
|
||||
- Fixed out-of-workspace bug with UNC files. [#326](https://github.com/microsoft/vscode-livepreview/issues/326)
|
||||
|
||||
## 0.4.5 (February 1, 2023)
|
||||
|
||||
- Added `livePreview.serverRoot` setting to specify server root in subfolder of workspace. [#155](https://github.com/microsoft/vscode-livepreview/issues/155)
|
||||
- Added `livePreview.customExternalBrowser` setting to specify external browser type (if different from default browser). [#69](https://github.com/microsoft/vscode-livepreview/issues/69)
|
||||
- Added `livePreview.start.preview.atFileString` command that takes an absolute or relative path string as an argument and opens the file in the preview. [#388](https://github.com/microsoft/vscode-livepreview/issues/388)
|
||||
|
||||
## 0.4.4 (October 31, 2022)
|
||||
|
||||
- Fixed 401 error in Codespaces. [#369](https://github.com/microsoft/vscode-livepreview/issues/369)
|
||||
- Fixed external preview open when server is closed. [#370](https://github.com/microsoft/vscode-livepreview/issues/370)
|
||||
|
||||
## 0.4.3 (October 7, 2022)
|
||||
|
||||
- Fixed 401 error in loading content with origin header. [#359](https://github.com/microsoft/vscode-livepreview/issues/359)
|
||||
- Fixed missing commands for opening in external preview. [#360](https://github.com/microsoft/vscode-livepreview/issues/360)
|
||||
|
||||
## 0.4.2 (October 5, 2022)
|
||||
|
||||
- Added ability to open external preview from while focused on embedded preview through command palette. [#303](https://github.com/microsoft/vscode-livepreview/issues/303)
|
||||
- Fixed server launch while the server is already launching. [#324](https://github.com/microsoft/vscode-livepreview/issues/324)
|
||||
- Fixed bug where clicking on the "started on" URL in the task terminal doesn't open in default preview. [#322](https://github.com/microsoft/vscode-livepreview/issues/322)
|
||||
|
@ -50,9 +66,11 @@
|
|||
- Changed query parsing and host checking.
|
||||
|
||||
# 0.4.1 (September 13, 2022)
|
||||
|
||||
- Changed nonce generation and link preview code.
|
||||
|
||||
## 0.4.0 (August 30, 2022)
|
||||
|
||||
- Added better multi-root support that opens a new server for each root. Paths relative to the root now work on multi-root. [#143](https://github.com/microsoft/vscode-livepreview/issues/143)
|
||||
- Localization support. [#221](https://github.com/microsoft/vscode-livepreview/issues/221)
|
||||
- Status bar setting removed in favor of using VS Code's native functionality to hide status bar contributions. [#269](https://github.com/microsoft/vscode-livepreview/issues/269)
|
||||
|
@ -60,37 +78,46 @@
|
|||
- Removed extension activation triggerring when simply on an HTML file. [#272](https://github.com/microsoft/vscode-livepreview/issues/272)
|
||||
|
||||
## 0.2.13 (July 29, 2022)
|
||||
|
||||
- Support Unicode characters (e.g. Chinese characters) in filenames. [#131](https://github.com/microsoft/vscode-livepreview/issues/131)
|
||||
- Page-based opt-out of live refreshing using the `data-server-no-reload` body attribute. [#241](https://github.com/microsoft/vscode-livepreview/issues/241)
|
||||
|
||||
## 0.2.12 (January 11, 2022)
|
||||
|
||||
- Use random path for the WebSocket server. [#193](https://github.com/microsoft/vscode-livepreview/issues/193)
|
||||
|
||||
## 0.2.11 (December 2, 2021)
|
||||
|
||||
- Reverted the change to support IPv6 addresses using the `livePreview.hostIP` setting. [#179](https://github.com/microsoft/vscode-livepreview/issues/179)
|
||||
|
||||
## 0.2.10 (November 29, 2021)
|
||||
|
||||
- Added support for IPv6 addresses to the `livePreview.hostIP` setting. [#179](https://github.com/microsoft/vscode-livepreview/issues/179)
|
||||
- Fixed an issue with dismissing the search widget when pressing the Esc key. [#130](https://github.com/microsoft/vscode-livepreview/issues/130)
|
||||
- Fixed an issue with using keybindings when focused on embedded preview. [#119](https://github.com/microsoft/vscode-livepreview/issues/119)
|
||||
|
||||
## 0.2.9 (September 30, 2021)
|
||||
|
||||
- Fixed an issue with the find widget icon background. [#156](https://github.com/microsoft/vscode-livepreview/issues/156)
|
||||
- Fixed an issue that causes the find widget to flicker while navigating through matches. [#157](https://github.com/microsoft/vscode-livepreview/issues/157)
|
||||
|
||||
## 0.2.8 (August 12, 2021)
|
||||
|
||||
- Fixed Custom IP Error on Local Session. [#140](https://github.com/microsoft/vscode-livepreview/pull/#140)
|
||||
- Fixed Identical Task Names. [#141](https://github.com/microsoft/vscode-livepreview/pull/#141)
|
||||
|
||||
## 0.2.7 (August 5, 2021)
|
||||
|
||||
- Print exceptions to console. [#134](https://github.com/microsoft/vscode-livepreview/pull/134)
|
||||
- Improve logging of functions. [#135](https://github.com/microsoft/vscode-livepreview/pull/135)
|
||||
|
||||
## 0.2.6 (July 28, 2021)
|
||||
|
||||
- Restricted remote sessions from hosting on custom IP host. [#123](https://github.com/microsoft/vscode-livepreview/pull/123)
|
||||
- Cleaned up injected script to reduce global variables. [#124](https://github.com/microsoft/vscode-livepreview/pull/125)
|
||||
|
||||
## 0.2.5 (July 26, 2021)
|
||||
|
||||
- General code cleanup. [#103](https://github.com/microsoft/vscode-livepreview/pull/103)
|
||||
- Added "Debug on External Preview" to allow users to modify the default external browser behavior. [#105](https://github.com/microsoft/vscode-livepreview/pull/105)
|
||||
- Changed activation to require user to be on HTML file rather than if the workspace contains an HTML file. [#110](https://github.com/microsoft/vscode-livepreview/pull/110)
|
||||
|
@ -100,6 +127,7 @@
|
|||
- Added option to configure host IP address. [#117](https://github.com/microsoft/vscode-livepreview/pull/117)
|
||||
|
||||
## 0.2.4 (July 21, 2021)
|
||||
|
||||
- Reduced `.vsix` size from ~25MB to ~200KB [#86](https://github.com/microsoft/vscode-livepreview/pull/86)
|
||||
- Added keywords to `package.json` for better marketplace search. [#87](https://github.com/microsoft/vscode-livepreview/pull/87)
|
||||
- Changed injected script to fetch from server for cleaner client code. [#93](https://github.com/microsoft/vscode-livepreview/pull/93)
|
||||
|
@ -107,13 +135,14 @@
|
|||
- Support `HTM/XHTML` files the same as HTML files. [#93](https://github.com/microsoft/vscode-livepreview/pull/93)
|
||||
|
||||
## 0.2.3 (July 15, 2021)
|
||||
|
||||
- Added support for watch scripts (e.g.: for Sass files). For this, use the "On Changes to Saved Files" option for the "Auto Refresh Preview" setting. [#82](https://github.com/microsoft/vscode-livepreview/pull/82)
|
||||
- Piped `console` logging to Output Channel (Embedded Live Preview Console). [#83](https://github.com/microsoft/vscode-livepreview/pull/83), [#85](https://github.com/microsoft/vscode-livepreview/pull/85)
|
||||
|
||||
## 0.2.2 (July 13, 2021)
|
||||
|
||||
- Adjusted "Open Automatically on Server Start" to take relative paths in workspace. [#74](https://github.com/microsoft/vscode-livepreview/pull/74)
|
||||
- Fixed favicon display on external preview. [#76](https://github.com/microsoft/vscode-livepreview/pull/76)
|
||||
- Fixed high CPU usage bug in external browser [#78](https://github.com/microsoft/vscode-livepreview/pull/78)
|
||||
|
||||
|
||||
Changes have only been tracked starting from `v0.2.2`
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "live-server",
|
||||
"displayName": "Live Preview",
|
||||
"description": "Hosts a local server in your workspace for you to preview your webpages on.",
|
||||
"version": "0.4.12",
|
||||
"version": "0.4.13",
|
||||
"preview": true,
|
||||
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
|
||||
"publisher": "ms-vscode",
|
||||
|
@ -286,6 +286,9 @@
|
|||
"workspacePath": {
|
||||
"type": "string",
|
||||
"description": "%tasks.workspacePathDesc%"
|
||||
},
|
||||
"icon": {
|
||||
"id": "$(radio-tower)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,8 +136,7 @@ export class HttpServer extends Disposable {
|
|||
...(contentLength ? { 'Content-Length': contentLength } : {}),
|
||||
// add CORP header for codespaces
|
||||
// https://github.com/microsoft/vscode-livepreview/issues/560
|
||||
...{'Cross-Origin-Resource-Policy': 'cross-origin',
|
||||
'Cross-Origin-Embedder-Policy': 'require-corp'},
|
||||
...{'Cross-Origin-Resource-Policy': 'cross-origin'},
|
||||
...this._defaultHeaders
|
||||
});
|
||||
} catch (e) {
|
||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -1731,9 +1731,9 @@ fs.realpath@^1.0.0:
|
|||
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
|
||||
|
||||
fsevents@~2.3.2:
|
||||
version "2.3.3"
|
||||
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
|
||||
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
|
||||
version "2.3.2"
|
||||
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
|
||||
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
|
||||
|
||||
fstream@^1.0.12:
|
||||
version "1.0.12"
|
||||
|
@ -2782,7 +2782,7 @@ schema-utils@^4.0.0:
|
|||
|
||||
semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7:
|
||||
version "7.5.3"
|
||||
resolved "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e"
|
||||
integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==
|
||||
dependencies:
|
||||
lru-cache "^6.0.0"
|
||||
|
@ -3223,7 +3223,7 @@ wildcard@^2.0.0:
|
|||
|
||||
word-wrap@^1.2.3:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz"
|
||||
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.4.tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f"
|
||||
integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==
|
||||
|
||||
workerpool@6.2.0:
|
||||
|
|
Загрузка…
Ссылка в новой задаче