vscode-live-server icon indicating copy to clipboard operation
vscode-live-server copied to clipboard

feat: add CORS config option to allow for disabling cors

Open sxyazi opened this issue 2 years ago • 0 comments

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other: <!-- Please describe: -->

What is the current behavior?

Issue Number: N/A

What is the new behavior?

In some cases, cors needs to be disabled to perform certain tests. For example, using 127.0.0.1 and localhost as different hosts.

This PR will add a new config option to optionally disable CORS.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

sxyazi avatar Jun 05 '22 14:06 sxyazi