Documentation
Preparing search index...
@saltcorn/data
utils
getFetchProxyOptions
Function getFetchProxyOptions
getFetchProxyOptions
()
:
|
{
agent
:
HttpsProxyAgent
<
string
>
}
|
{
agent
?:
undefined
}
Sanitizes a relative URL string.
Ensures it starts with /
Resolves away path traversal sequences (../../etc)
Preserves query string and hash
Returns
{
agent
:
HttpsProxyAgent
<
string
>
}
|
{
agent
?:
undefined
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
Sanitizes a relative URL string.