Skip to content

Commit

Permalink
Version 0.9.15
Browse files Browse the repository at this point in the history
- Addresses XSS aspect of issue #546
  • Loading branch information
jhuckaby committed Nov 3, 2022
1 parent 8e8e348 commit c7486df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/index-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<!-- BUILD: COMBINE_SCRIPT_END -->

<script src="/socket.io/socket.io.js"></script>
<script src="/api/app/config?callback=app.receiveConfig"></script>
<script src="/api/app/config"></script>

</body>
</html>
3 changes: 3 additions & 0 deletions lib/api/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ module.exports = Class.create({
// send config to client
var self = this;

// prevent XSS
args.query.callback = 'app.receiveConfig';

// do not cache this API response
this.forceNoCacheResponse(args);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cronicle",
"version": "0.9.14",
"version": "0.9.15",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down

0 comments on commit c7486df

Please sign in to comment.