Edge Functions - JavaScript Examples

Using edge functions on the Azion Platform allows you to have closer and faster communication with users. By making use of JavaScript, you’re able to effectively perform tasks that have a great impact on people’s lives and business on a daily basis.


Edge Functions - Edge Application

A/B testing

Extract cookie value

Hello World

Redirect all requests to one URL

Respond with another site

Rest APIs

Return HTML

Return JSON

Using args


Edge Functions - Edge Firewall

Adding a response header

Deny a request based on Geoip

General edge functions on firewall example


Contributors