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

doc: fix some policy scope typos #51234

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ different strings to point to the same module (such as excluding the extension).

Specifier strings are canonicalized but not resolved prior to be used for
matching in order to have some compatibility with import maps, for example if a
resource `file:///C:/app/server.js` was given the following redirection from a
resource `file:///C:/app/utils.js` was given the following redirection from a
policy located at `file:///C:/app/policy.json`:

```json
Expand Down Expand Up @@ -303,15 +303,15 @@ delegate to the next relevant scope for `file:///C:/app/bin/main.js`, `"file:"`.

This determines the policy for all file based resources within `"file:///C:/"`.
This is not in the `"scopes"` field of the policy and would be skipped. It would
not be used for `file:///C:/app/bin/main.js` unless `"file:///"` is set to
cascade or is not in the `"scopes"` of the policy.
not be used for `file:///C:/app/bin/main.js` unless `"file:///C:/app/"` is set
to cascade or is not in the `"scopes"` of the policy.

4. `"file:///"`

This determines the policy for all file based resources on the `localhost`. This
is not in the `"scopes"` field of the policy and would be skipped. It would not
be used for `file:///C:/app/bin/main.js` unless `"file:///"` is set to cascade
or is not in the `"scopes"` of the policy.
be used for `file:///C:/app/bin/main.js` unless `"file:///C:/"` is set to
cascade or is not in the `"scopes"` of the policy.

5. `"file:"`

Expand Down