bug: HTML custom elements fails to inject in sites with strict CSP
I'm getting a lot of errors in the console on sites with CSP enabled, seems like requestly is trying to do a lot more than just the rules I specified (modifying headers).
Hey @zidad . To make it easy to monitor whether the rules are applied or not on a page, we inject a custom HTML element. These errors are mostly due to that only but they are completely harmless. You can learn more about the feature here
You can disable this feature by going to https://app.requestly.io/settings/global-settings . That should get rid of these issues.
Great, that worked, thanks! They are harmless but when you're building/debugging sites I don't want to see any errors in my console... Maybe it's possible for requestly to check for CSP policies before trying to inject the elements?
Makes sense. These unwanted errors can cause developers to look in the wrong direction.
We already handle CSP issues in our Response Rule. This can also be handled similarly. Adding this to our triage for now