Add server-side proxy for Scalar API client to bypass CORS (#4050)

This commit is contained in:
Nolann B.
2026-02-27 12:18:07 +01:00
committed by GitHub
parent afa868e0e1
commit e074283bbf
9 changed files with 794 additions and 3 deletions
+6
View File
@@ -17,6 +17,12 @@ export interface OpenAPICustomSpecProperties {
*/
'x-hideTryItPanel'?: boolean;
/**
* If `true`, the Scalar API client will proxy requests through the server
* to avoid CORS issues.
*/
'x-enable-proxy'?: boolean;
/**
* Description in HTML format.
*/