edge/pkg/module/fetch/testdata/fetch.js

7 lines
166 B
JavaScript
Raw Normal View History

2023-04-02 17:59:33 +02:00
var ctx = context.new();
function onClientFetch(ctx, url, remoteAddr) {
if (url === 'http://example.com') return { allow: true };
return { allow: false };
}