Functions - JavaScript Examples

Using 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.


Functions - Applications

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


Functions - Firewall

Adding a response header

Deny a request based on Geoip

General functions on firewall example