Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
code share

Workaround for CSS patching and Subresource Integrity enabled websites

Problem this snippet solves:

Subresource Integrity (SRI) is a new W3C specification that allows web developers to ensure that resources hosted on third-party servers have not been tampered with. Websites that make use of SRI can break when CSS patching is used within APM Portal Access. This very basic snippet will simply disable SRI by removing it.

The picture below shows an example of Chrome blocking a stylesheet from being loading (Chrome DevTools -> Console).

Image Text

How to use this snippet:

Assign both a STREAM profile and this iRule to the Virtual Server.

Tested on Version:
Comments on this Snippet
Comment made 12-Jun-2018 by ijdod 131

Just as a side note: the stream profile is under advanced settings of the virtual server.