Skip to content

Commit

Permalink
fix(ios): overwrite CORS headers on livereload (#7349)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Mar 14, 2024
1 parent 771d678 commit 1aad9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/WebViewAssetHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ internal class WebViewAssetHandler: NSObject, WKURLSchemeHandler {
]
}

if let mergedHeaders = existingHeaders.merging(newHeaders, uniquingKeysWith: { (current, _) in current }) as? [String: String] {
if let mergedHeaders = existingHeaders.merging(newHeaders, uniquingKeysWith: { (_, newHeaders) in newHeaders }) as? [String: String] {

if let responseUrl = response.url {
if let modifiedResponse = HTTPURLResponse(
Expand Down

0 comments on commit 1aad9c6

Please sign in to comment.