# Urgent: PWA (Progressive Web App) Interference - Incorrect Content-Type for manifest.json a

**URL:** https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337
**Category:** Hosting Support
**Created:** [June 27, 2025, 12:53am UTC](https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337 "2025-06-27T00:53:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Cassrodrigues](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/cassrodrigues/32/58368_2.png) [@Cassrodrigues](https://forum.infinityfree.com/u/Cassrodrigues)
#### Post date: [June 27, 2025, 12:53am UTC](https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337/1 "2025-06-27T00:53:13Z")

</div>

https:eletricistaefaztudo.sampa.br

Dear Hosting Support Team,

I am writing to request urgent assistance with a critical issue affecting my Progressive Web App (PWA) functionality on my website, `https://eletricistaefaztudo.sampa.br`.

I have implemented a PWA, including `manifest.json` and `sw.js` files, which are essential for its proper operation (e.g., installability, offline capabilities). These files are located at the root of my domain.

Upon inspecting the network requests using browser developer tools, I found that requests for `/manifest.json` (and likely `/sw.js` as well) are being served with an incorrect `Content-Type` header of `text/html`, instead of `application/json` or `application/javascript`, respectively. Furthermore, the response content for these files is an HTML page containing a JavaScript challenge (similar to a bot protection script, e.g., `/aes.js`), rather than the actual JSON/JavaScript content.

This behavior is preventing the browser from parsing the `manifest.json` correctly (resulting in a “SyntaxError: Unexpected token ‘\<’” at line 1, column 1) and from registering the Service Worker, thus breaking the core functionality of my PWA.

Given that my hosting uses Cloudflare, I believe this issue stems from the Cloudflare security/bot protection settings that are intercepting and modifying the responses for these specific PWA files.

To resolve this, I kindly request one of the following actions:

1. **Option A (Preferred): Configure Cloudflare Page Rules/Security Settings** Please configure Cloudflare to **bypass security checks and any HTML modification/injection** for the following specific URLs:

- `https://eletricistaefaztudo.sampa.br/manifest.json`
- `https://eletricistaefaztudo.sampa.br/sw.js` This configuration should ensure that these files are served directly with their correct `Content-Type` headers (`application/json` for `manifest.json` and `application/javascript` for `sw.js`) and without any injected HTML challenge.

1. **Option B (Alternative): Temporarily Disable Cloudflare/CDN for my Domain** If configuring specific bypass rules is not feasible or complex for your team, please temporarily disable Cloudflare (or any other CDN/security service that might be causing this) for my domain, `https://eletricistaefaztudo.sampa.br`, until I can fully diagnose and resolve the issue on my end, or find an alternative solution.

A functional PWA is critical for my website’s user experience and engagement. I appreciate your prompt attention to this matter.

Please let me know if you require any further information or access to my account.

Thank you.

---

<div class="post-metadata">

### Author: ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)
#### Post date: [June 27, 2025, 1:27am UTC](https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337/2 "2025-06-27T01:27:01Z")

</div>

I don’t know why you straight up assumed that we are using some Cloudflare things to do this. But anyways, there is indeed a security system tampering with PWAs, and cannot be disabled.

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools. To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…

By far only one user has worked out a workaround, but we still didn’t know how it is done.

---

<div class="post-metadata">

### Author: ![Cassrodrigues](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/cassrodrigues/32/58368_2.png) [@Cassrodrigues](https://forum.infinityfree.com/u/Cassrodrigues)
#### Post date: [June 27, 2025, 7:00am UTC](https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337/3 "2025-06-27T07:00:46Z")

</div>

I assumed Cloudflare was being used because the results I got using Chrome’s code inspector were pretty consistent with their practices.

In any case, I appreciate the quick response and the information.

Best regards.

---

<div class="post-metadata">

### Author: ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)
#### Post date: [June 27, 2025, 7:48am UTC](https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337/4 "2025-06-27T07:48:57Z")

</div>

There was this topic from a few weeks where someone claimed they were able to make it work. Maybe this information could help you too?

> [@Solution for PWA ( Progressive Web Apps )](https://forum.infinityfree.com/t/solution-for-pwa-progressive-web-apps/111347):
>
> I have literally been working on this for a LOT of hours, and I believe the solution was modifying the .htaccess that you do have access to (in the htdocs folder), but also a combination of everything could have been the solution. This DOES NOT fix the PWABuilder “Error 500” issue, however, I was still able to download the PWA in my browser, so that’s still a big plus. Used the Samsung Internet Browser, haven’t tested on any other browser just yet, but I am assuming it works on those also. …

---

<div class="post-metadata">

### Author: ![Cassrodrigues](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/cassrodrigues/32/58368_2.png) [@Cassrodrigues](https://forum.infinityfree.com/u/Cassrodrigues)
#### Post date: [June 27, 2025, 6:17pm UTC](https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337/5 "2025-06-27T18:17:42Z")

</div>

It looks promising.

I’ll give it a try. I’ll be very happy if it works. I was already considering changing hosting.

Thank you very much!

Best regards.

---

<div class="post-metadata">

### Author: ![Cassrodrigues](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/cassrodrigues/32/58368_2.png) [@Cassrodrigues](https://forum.infinityfree.com/u/Cassrodrigues)
#### Post date: [June 30, 2025, 4:00am UTC](https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337/6 "2025-06-30T04:00:15Z")

</div>

I couldn’t overcome the problem. I worked hard on it and even had some success, manipulating my .htaccess file, implementing and configuring the Claudfrare CDN, but it was a very specific solution that would make it difficult to maintain and refine the site in the long term, and would even compromise the casual user experience.

I could implement the PWA routines through Claudfrare’s own resources. It would be a robust solution, but eventually I would run into the same problem. A difficult and complicated maintenance.

Even so, I appreciate the tip.

Cheers!

---

<div class="post-metadata">

### Author: ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)
#### Post date: [July 7, 2025, 4:01am UTC](https://forum.infinityfree.com/t/urgent-pwa-progressive-web-app-interference-incorrect-content-type-for-manifest-json-a/112337/7 "2025-07-07T04:01:14Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
