freeCodeCamp/curriculum/challenges/chinese/06-information-security-and.../information-security-and-qu.../anonymous-message-board.chi...

3.7 KiB
Raw Blame History

id title challengeType isRequired videoUrl localeTitle
587d824a367417b2b2512c45 Anonymous Message Board 4 true 匿名留言板

Description

构建一个功能类似于此的完整堆栈JavaScript应用程序 https //horn-celery.glitch.me/ 。在这个项目上工作将涉及您在我们的入门项目上在Glitch上编写代码。完成此项目后您可以将公共故障网址到应用程序的主页复制到此屏幕进行测试您可以选择在另一个平台上编写项目但必须公开显示我们的测试。使用此链接在Glitch上启动此项目或在GitHub上克隆此存储库 如果您使用Glitch请记住将项目链接保存到安全的地方

Instructions

Tests

tests:
  - text: 只允许您的网站加载到您自己网页上的iFrame中。
    testString: ''
  - text: 不允许DNS预取。
    testString: ''
  - text: 只允许您的网站为您自己的网页发送引荐来源。
    testString: ''
  - text: '我可以通过将表单数据文本和deletepassword_传递给/api/threads/ {board}将一个帖子发布到一个特定的留言板。推荐res.redirect到电路板页面/ b / {board}保存的至少是_idtext createdon_日期和时间bumpedon_日期和时间与created_on相同报告布尔值deletepassword_和回复数组。'
    testString: ''
  - text: '我可以通过将表单数据文本deletepassword_和threadid_传递给/ api / replies / {board}来对特定板上的线程发送回复并且还会将bumped_on日期更新到注释日期。推荐res.redirect到thread page / b / {board} / {thread_id}在线程的回复数组中将保存_idtextcreatedon_deletepassword_并报告。'
    testString: ''
  - text: '我可以在电路板上获取最近10个凸起线程的数组其中最近只有来自/ api / threads / {board}的3个回复。 report和deletepasswords_字段不会发送到客户端。'
    testString: ''
  - text: '我可以使用/ api / replies / {board}的所有回复获取整个帖子吗thread_id = {thread_id}。同样隐藏客户端应该看到的相同字段。'
    testString: ''
  - text: '如果我向/ api / threads / {board}发送DELETE请求并传递threadid_deletepassword_我可以完全删除一个线程。 (文字回复将是“密码不正确”或“成功”)'
    testString: ''
  - text: '如果我向/ api / replies / {board}发送DELETE请求并传递threadid_replyid_和deletepassword_我可以删除帖子只是将文本更改为“[已删除]”而不是像线程一样完全删除)。 (文字回复将是“密码不正确”或“成功”)'
    testString: ''
  - text: '我可以通过向/ api / threads / {board}发送PUT请求并传递threadid_来报告一个线程并将其报告值更改为true。 (文字回复将是“成功”)'
    testString: ''
  - text: '我可以通过向/ api / replies / {board}发送PUT请求并传递threadid_replyid_来报告回复并将其报告值更改为true。 (文字回复将是“成功”)'
    testString: ''
  - text: 完整的功能测试,完全测试路线和通过。
    testString: ''

Challenge Seed

Solution

// solution required