Add some testing scripts

This commit is contained in:
Logan Hunt 2022-06-19 01:50:17 -07:00
parent a028e009d6
commit 797fd0eea0
Signed by untrusted user who does not match committer: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 9 additions and 0 deletions

2
js-scripts/README.org Normal file
View File

@ -0,0 +1,2 @@
* js-scripts
These are just scripts that I use to test XSS bugs and whatnot; I'm not very good and I have no idea what I am doing this so please ignore them.

View File

@ -0,0 +1,7 @@
// Testing to see if I can make API calls on a site that has CSP headers. However,
// this certain site does not have those headers on their error page, so by creating
// an iframe on the document root with this source we can make an api call to another
// service, maybe?
fetch('https://jsonplaceholder.typicode.com/todos/1')
.then(response => response.json())
.then(json => console.log(json))