<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebFrameLoadDelegate/webView(_:didReceiveServerRedirectForProvisionalLoadFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebFrameLoadDelegate(im)webView:didReceiveServerRedirectForProvisionalLoadForFrame:"
  },
  "title" : "webView(_:didReceiveServerRedirectForProvisionalLoadFor:)"
}
-->

# webView(_:didReceiveServerRedirectForProvisionalLoadFor:)

Called when a provisional data source for a frame receives a server redirect.

```
optional func webView(_ sender: WebView!, didReceiveServerRedirectForProvisionalLoadFor frame: WebFrame!)
```

## Parameters

`sender`

The web view containing the frame.

`frame`

The frame being loaded.

## Discussion

A *server redirect* is when one URL location is redirected to another. Additional information about the new request can be obtained from the data source of `frame`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)