Commit 70a0195
fix(site): route homepage capture to the bmdpat list (secure, same-origin)
The homepage "Get updates" form posted to /api/lead, which has no handler
in the repo (GET returns 307) and does not feed the bmdpat newsletter list
where subscribers actually live. It was a dead capture.
Replace it with a link to bmdpat's hardened, same-origin capture at
/tools/agentguard (honeypot + rate limit + validation already in place),
tagged with utm_source=agentguard47 for attribution. De-fluffed the copy to
match the list ("Field notes on running agents in production").
Security: this deliberately introduces NO cross-origin write path. No CORS
is opened on bmdpat, and no shared secret lives in this public MIT repo.
The most secure wiring is to reuse the existing same-origin endpoint, which
this does. Removed the now-unused submitLeadForm handler.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 73fd924 commit 70a0195
1 file changed
Lines changed: 4 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1037 | 1034 | | |
1038 | 1035 | | |
1039 | 1036 | | |
| |||
1099 | 1096 | | |
1100 | 1097 | | |
1101 | 1098 | | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | 1099 | | |
1146 | 1100 | | |
1147 | 1101 | | |
0 commit comments