typedef: add allowRedirects to OpenOptions
This commit is contained in:
parent
98c4199fe0
commit
8f13d4af2e
12
gluon.d.ts
vendored
12
gluon.d.ts
vendored
@ -516,8 +516,18 @@ type OpenOptions = {
|
||||
* - `false`: HTTP is **completely disabled**. Recommended.
|
||||
* - `mixed`: HTTP is **enabled for mixed content**, but not as window URL. **Not recommended.**
|
||||
* - `true`: HTTP is **completely enabled**. **Not recommended.**
|
||||
* @default false
|
||||
*/
|
||||
allowHTTP?: false | 'mixed' | true
|
||||
allowHTTP?: false | 'mixed' | true,
|
||||
|
||||
/**
|
||||
* Set what redirects are allowed in the window.
|
||||
* Options:
|
||||
* - `false`: **No** redirects are allowed.
|
||||
* - `same-origin`: Redirects are **allowed if the redirect URL is the same origin** (as the URL given to `open()`).
|
||||
* - `true`: **All** redirects are allowed. **Not recommended.**
|
||||
*/
|
||||
allowRedirects?: false | 'same-origin' | true
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user