Skip to content
Open
Show file tree
Hide file tree
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
34 changes: 34 additions & 0 deletions packages/oc-schema/src/opencollection.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,23 @@
}
],
"description": "Maximum number of redirects to follow"
},
"forwardAuthorizationOnRedirect": {
"oneOf": [
{
"type": "boolean",
"const": true
},
{
"type": "boolean",
"const": false
},
{
"type": "string",
"const": "inherit"
}
],
"description": "Whether to forward authorization headers on redirect to third party origin"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -1789,6 +1806,23 @@
}
],
"description": "Maximum number of redirects to follow"
},
"forwardAuthorizationOnRedirect": {
"oneOf": [
{
"type": "boolean",
"const": true
},
{
"type": "boolean",
"const": false
},
{
"type": "string",
"const": "inherit"
}
],
"description": "Whether to forward authorization headers on redirect to third party origin"
}
},
"additionalProperties": false
Expand Down
1 change: 1 addition & 0 deletions packages/oc-types/src/requests/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface GraphQLRequestSettings {
timeout?: number | 'inherit';
followRedirects?: boolean | 'inherit';
maxRedirects?: number | 'inherit';
forwardAuthorizationOnRedirect?: boolean | 'inherit';
}

export interface GraphQLRequestInfo {
Expand Down
1 change: 1 addition & 0 deletions packages/oc-types/src/requests/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export interface HttpRequestSettings {
timeout?: number | 'inherit';
followRedirects?: boolean | 'inherit';
maxRedirects?: number | 'inherit';
forwardAuthorizationOnRedirect?: boolean | 'inherit';
}

export interface HttpRequestExampleRequest {
Expand Down