Workers affected UI

Hi there

I need some help fixing the workers issues on UI

I deployed workers to implement security headers. Once the worker was deployed it affected the UI (Images, google ads and also it decreased the page loading. currently i have disabled CF on the site).
I don’t know what other info to present in order to explain it better. Please advise me what to do and if needed i will activate CF on the site to review the issue.
Please let me know how to solve the issue.

Kind regards

What security headers did you implement? Are you able to share the worker code?

these are the security headers i implemented

  • Strict-Transport-Security
  • Content-Security-Policy
  • X-Frame-Options
  • X-Content-Type-Options
  • Referrer-Policy
  • Permissions-Policy

Please note the i have deactivated the CF for that specific issue.

What values did you set for these headers?


Today as i tried to edit worker, the screen editor appeared blank, so i deleted the worker i created (wanted to modify it). Once worker was deleted the issue persisted even though the worker was deleted.

So, i deactivate CF on the website and everything appeared as it should.
Now, am thinking that the UI issue was of worker’s after all but of CF.

Now, I am trying to debug the issue, but so far I have failed to find what causes the UI break