Skip to content

Commit

Permalink
#44 front end JavaScript library with key obfuscated - review
Browse files Browse the repository at this point in the history
  • Loading branch information
drnow4u committed Apr 4, 2022
1 parent fbf3a0d commit 0f9fe21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/main/resources/explanations/challenge16_hint.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
You can solve this challenge by the following steps:

1. Open the main page in the Chrome browser
2. Open development tools:
1. Open browser's development tools:
- select Network tab
- find request with path `/token`
- find in the request body `client_secret`
- find in the request body key `client_secret`
4 changes: 2 additions & 2 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
});
</script>
<script th:src="@{/theme-toggle.js}"></script>
<script src="js/index.js"></script>
<script>
<script th:if="${challenge.challengeNumber == 16}" src="/js/index.js"></script>
<script th:if="${challenge.challengeNumber == 16}">
const password = secret();
const httpRequest = new XMLHttpRequest();
httpRequest.open("POST", "/token", true);
Expand Down

0 comments on commit 0f9fe21

Please sign in to comment.