Add "app://localhost" to the list of allowed origins, so that requests from Field Kit on iOS native (WKWebView) are accepted.

This commit is contained in:
Michael Stenta 2020-07-29 21:29:39 -04:00
parent 571ffbe733
commit 2d62bd9a83
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ function farm_access_add_cors_headers() {
$value = trim($value);
}
// Add "app://localhost" to the list of allowed origins, so that requests from
// Field Kit on iOS native (WKWebView) are accepted.
$allowed_origins[] = 'app://localhost';
// Get the request headers.
$headers = getallheaders();