When user enters an invalid or unreachable URL to test, request lasts for 30 seconds before Pa11y gives up and throws an error.
We should:
[x] Add validation to the input field in public/index.html (<input type="url">) to reduce the chances of users entering bogus values like "foo" or "bar" in place of valid URLs.
[x] Decrease Pa11y's timeout (shouldn't be higher than waitTime + 1 second, IMHO).
[x] Maybe strenghten validation of request options: at the present stage, users are allowed to pass Pa11y any option in the request body — this is fine for an internal tool, tremendously bad for a world-exposed application.
When user enters an invalid or unreachable URL to test, request lasts for 30 seconds before Pa11y gives up and throws an error.
We should:
public/index.html
(<input type="url">
) to reduce the chances of users entering bogus values like "foo" or "bar" in place of valid URLs.timeout
(shouldn't be higher thanwaitTime
+ 1 second, IMHO).