diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-06-19 01:50:17 -0700 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-06-19 01:50:17 -0700 |
commit | 797fd0eea058d54fe45fa057e9c59f07475082fd (patch) | |
tree | d923c070ec789d8e2b0635feaf3866d43abea5e4 /js-scripts/queryJsonPlaceholder.js | |
parent | a028e009d6a1db3c145fc970a293a68e78114f5d (diff) | |
download | simponic.xyz-797fd0eea058d54fe45fa057e9c59f07475082fd.tar.gz simponic.xyz-797fd0eea058d54fe45fa057e9c59f07475082fd.zip |
Add some testing scripts
Diffstat (limited to 'js-scripts/queryJsonPlaceholder.js')
-rw-r--r-- | js-scripts/queryJsonPlaceholder.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js-scripts/queryJsonPlaceholder.js b/js-scripts/queryJsonPlaceholder.js new file mode 100644 index 0000000..e8b7ea2 --- /dev/null +++ b/js-scripts/queryJsonPlaceholder.js @@ -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)) |