Add additional backend URIs. /images is used by manifest.json, /favicon.ico is used by browsers to set favicons, but some bug out for bookmarks if this isn't route excepted, /apple-touch-icon.png is the default iOS/iPad file for specifying icons, /browserconfig.xml is used by Windows for metro tiles for added pages, /robots.txt is used by bots to determine if access is permitted to pages. Some bots that use Selenium break when the routing isn't exempt.
This commit is contained in:
parent
f635d71350
commit
b314bb7af1
1 changed files with 5 additions and 0 deletions
|
@ -131,6 +131,11 @@ const configuration: Configuration = {
|
||||||
'/socket',
|
'/socket',
|
||||||
'/static',
|
'/static',
|
||||||
'/unsubscribe',
|
'/unsubscribe',
|
||||||
|
'/images',
|
||||||
|
'/favicon.ico',
|
||||||
|
'/apple-touch-icon.png',
|
||||||
|
'/browserconfig.xml',
|
||||||
|
'/robots.txt',
|
||||||
];
|
];
|
||||||
|
|
||||||
if (backendRoutes.some(path => pathname.startsWith(path)) || pathname.endsWith('/embed')) {
|
if (backendRoutes.some(path => pathname.startsWith(path)) || pathname.endsWith('/embed')) {
|
||||||
|
|
Loading…
Reference in a new issue