This tool will try to load some specific URLs from javscript within the browser. If successful, it will report either the content of the page that is returned, or simply that the result was successful. If not successful, an error message will be displayed.
- Clone the repository to your development system
- In the project directory, run
npm install
- To start a local development server, run
npm run dev
and a server will spin up at http://localhost:1234 - Make edits to whatever files you need (see "customization" below)
- To build files for deployment, run
npm run build
and files will be generated in thebuild
directory - Copy all files from your
build
directory to the destination server
Customization is fairly straightforward if you are familiar with Svelte applications, but if not, here are some potentially time-saving instructions:
- Load the
src/components/App.svelte
file in an editor - Note that there are
<Card ...>
tags for each request that is produced in the output - Add, remove, or modify the
<Card ...>
tags as you see fit- The
site
parameter should contain the full URL to request - The
showResponse
parameter should be"yes"
if the output should should the full response from the request
- The
- Save the file
- If you're already running the server from
npm run dev
then your browser will automatically reload - Repeat the above until the page does what you want
- Run
npm run build
to produce distribution files for your server
Because the check is happening inside of your browser, and not on the server, it is subject to CORS request constraints. Unless the server you're checking has added the appropriate CORS headers, the check will likely return an error.
If you're looking for additional CORS-safe URLs, you might consider CDNs that house javascript, as they are most likely to have the correct headers set.