Append new query parameters

Quick question:

Can I append new query parameters with the help of CF worker and append cookie in response header? Is it possible at same time?

Check out this example

Instead of altering the hostname as in the example, change the searchParams using the URLsearchParams.set() method.

This same example shows how to modify the headers of the response which is where you would use Set-Cookie to append a new cookie.


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