'On assetlinks.json fileupload getting Content-Type application/json error

I have uploaded the assetlinks.json file in domain://.well-known/ location, still I m getting the below error

It looks like you are hosting the Digital Asset Links file with a wrong Content-Type. Please make sure the Content-Type is application/json

I have used firebase for deployment.

When I hit "https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://domain:port&relation=delegate_permission/common.handle_all_urls" for testing.

I m getting

Error: unavailable: Wrong content type in HTTP response headers while fetching statements from domain



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source