awslabs / awslabs/agentcore-samples
06-workshops - [Bug] 07-Temporal Policies: localhost:5173 instruction invalid on remote VM — Vite host check blocks CloudFront hostname
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
**In which component is this bug present?**
- [ ] 01-AgentCore-runtime
- [x] 02-AgentCore-gateway
- [ ] 03-AgentCore-identity
- [ ] 04-AgentCore-memory
- [ ] 05-AgentCore-tools
- [ ] 06-AgentCore-observability
- [ ] 07-AgentCore-E2E
**Bug Description**
In the Temporal Policies section (07-Centralise and govern your AI infrastructure), the workshop says "Then open http://localhost:5173." But the app gets deployed on a remote VM accessed through CloudFront, so this instruction is invalid.
**Sub-issue: Vite host check blocks CloudFront hostname**
Symptom: "Blocked request. This host (dogu4gm1cbm4c.cloudfront.net) is not allowed."
Cause: Vite's dev server rejects requests from hostnames not in its allowlist.
**Suggested Fix**
Add `allowedHosts: true` to `vite.config.ts`.
Contributor guide
Assessment
This issue has not been assessed yet.