akamai / edgeworkers-examples

EdgeWorkers Examples – This repository contains practical examples, that can be used as a starting point for Akamai EdgeWorkers.
Apache License 2.0
138 stars 77 forks source link

Adding example for the new html-rewriter module #180

Closed nighthauk closed 1 year ago

nighthauk commented 1 year ago

Let me know If there are additional changes or items you'd like added.

joshjohnson commented 1 year ago

I had a couple small items for feedback.

  1. The example should be named something more specific than html-rewriter, as it is likely that we will add other examples for the html-rewriter in the future. Maybe something script-tag-injection-html-rewriter?
  2. To show a more complete example of a passthrough request, should the example pass request/response headers through? If you add this, please ensure that it removes "unsafe" request and response headers.