Skip to content

Commit

Permalink
feat(http): add instructions for HTTP challenge in initial response
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Oct 30, 2023
1 parent 388731a commit 9fe17eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ the record is added, you can verify that it is set up correctly by making a POST
the domain and domainkey parameters. For example:
curl -X POST -d "domain=${domain}&domainkey=${newkey}" ${currentURL}
Alternatively, use the HTTP challenge and provide a resource at https://${domain}/_rum-challenge that responds to
an OPTIONS request with a 204 status code and following headers:
- x-rum-challenge: ${hash}
If you are using *.hlx.live as your CDN origin, these headers will be added automatically.
`;
return new Response(instructions, {
status: 404,
Expand Down

0 comments on commit 9fe17eb

Please sign in to comment.