You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/learning-paths/holistic-ai-security/appendix/workers-create-custom-coaching-pages.mdx
+45-45Lines changed: 45 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,39 +8,39 @@ sidebar:
8
8
9
9
Cloudflare Workers are an easy method to stand up custom user coaching pages. The customs status pages can be handled dynamically based on the information that Gateway sends about a blocked request.
10
10
11
-
## Example
11
+
## Example
12
12
13
-
```
13
+
```js
14
14
constCOMPANY_NAME="Your Company Inc.";
15
-
const APPROVED_TOOL_URL = 'https://chat.yourcompany.com'; // Your sanctioned AI tool URL
16
-
const APPROVED_TOOL_NAME = 'Corporate AI Assistant'; // The user-friendly name of your tool
17
-
const IT_HELPDESK_EMAIL = '[email protected]'; // Email for the "report a problem" button
18
-
const COMPANY_LOGO_URL = 'Your_Logo.svg'; // A publicly accessible URL for your company logo. Replace with your own.
15
+
constAPPROVED_TOOL_URL="https://chat.yourcompany.com"; // Your sanctioned AI tool URL
16
+
constAPPROVED_TOOL_NAME="Corporate AI Assistant"; // The user-friendly name of your tool
17
+
constIT_HELPDESK_EMAIL="[email protected]"; // Email for the "report a problem" button
18
+
constCOMPANY_LOGO_URL="Your_Logo.svg"; // A publicly accessible URL for your company logo. Replace with your own.
19
19
20
20
exportdefault {
21
-
async fetch(request) {
22
-
// 1. Get the blocked URL from the query string passed by Gateway.
0 commit comments