mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: correct SCIM Swagger try it out URLs (#24779)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// Swagger UI requestInterceptor.
|
||||
//
|
||||
// Returned to Swagger UI as the value of the `requestInterceptor` config
|
||||
// option. Swagger UI evaluates this string as a JavaScript expression that
|
||||
// must produce a function which receives a request object and returns the
|
||||
// (possibly mutated) request.
|
||||
//
|
||||
// `withCredentials: false` should disable fetch sending browser credentials,
|
||||
// but for whatever reason it does not. So this interceptor explicitly omits
|
||||
// browser credentials from every request to avoid the cookie auth and the
|
||||
// header auth competing.
|
||||
(request => {
|
||||
request.credentials = "omit";
|
||||
return request;
|
||||
})
|
||||
Reference in New Issue
Block a user