You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// `auto`: if the frontend and backend domain are on the same domain, we will call the proxy instead of the backendUrl directly
17
17
constcallProxy=enableProxy==='auto'
18
-
? urlBackend.hostname===url.hostname
18
+
? urlBackend.hostname===requestUrl.hostname
19
19
: enableProxy
20
+
constapiUrl=callProxy
21
+
? requestUrl.origin
22
+
: backendUrl
20
23
21
24
// this wrappedFetch calculates the sha256 hash of the request body and adds it to the headers, it is necessary for AWS Lambda + OAC on POST/PUT requests.
0 commit comments