You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pa11y-ci cannot fetch a sitemap if a proxy is required to access it.
It seems that the call to fetch the sitemap from a remote location does not consider a proxy.
Tested behind VPN + Proxy; proxy setting works without --sitemap, but not with --sitemap.
I could not evaluate whether or not it would be able to fetch a sitemap behind HTTP Basic Auth but I assume it would be ignored, too, as the respective line only issues a simple .then(() => fetch(sitemapUrl)).
Same issue here. It looks like the default node-fetch module doesn't support proxy. I hope this will be added sometimes.
My current workaround was requiring a small wrapper library (https://github.com/formio/node-fetch-http-proxy) and replacing the 'node-fetch' module with '@formio/node-fetch-http-proxy'. Works like expected using environment variables.
pa11y-ci cannot fetch a sitemap if a proxy is required to access it.
It seems that the call to fetch the sitemap from a remote location does not consider a proxy.
Tested behind VPN + Proxy; proxy setting works without --sitemap, but not with --sitemap.
I could not evaluate whether or not it would be able to fetch a sitemap behind HTTP Basic Auth but I assume it would be ignored, too, as the respective line only issues a simple .then(() => fetch(sitemapUrl)).
Example configuration:
pa11y_config.js
Example command:
pa11y-ci --config pa11y_config.js -s https://pa11y.org/sitemap.xml
(behind VPN with required outgoing proxy)The text was updated successfully, but these errors were encountered: