Php Redirect With Slim Framework in Azure App Service

I’m using Slim 4. In my code, I’m trying to redirect to a URL:

return $response
        ->withHeader('Location', '')

When I run it on my local computer on WAMP server using http://localhost, it worked fine. But, after uploading on azure app service and running, I’m just getting a blank page. The URL stays the same.

My .htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

Response header:

Request Method: GET
Status Code: 200 OK
Remote Address:
Referrer Policy: no-referrer-when-downgrade
Content-Length: 1
Content-Type: text/html; charset=UTF-8
Date: Thu, 03 Sep 2020 00:14:24 GMT
Server: Apache
X-Powered-By: PHP/7.3.15
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng, / ;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Mobile Safari/537.36

What do the response headers look like?

Updated the question with the response header. Status code is 200 but I’m returning 302.