Geta / geta-notfoundhandler

The popular NotFound handler for ASP.NET Core and Optimizely, enabling better control over your 404 page in addition to allowing redirects for old URLs that no longer works.
Apache License 2.0
20 stars 16 forks source link

Geta.NotFoundHandler.Admin does not work as expected behind a strict firewall #102

Closed lk-luca closed 1 year ago

lk-luca commented 1 year ago

When trying to use Geta.NotFoundHandler.Admin behind a firewall which blocks cdn.jsdelivr.net the frontend becomes unusable. The goal of blocking cdn.jsdelivr.net is to protect the users from suply chain attacks.

It would be nice if there would be an option to override the URLs used by Geta.NotFoundHandler.Admin to point them to another resource than the one hardcoded in right now. As such a developer could bundle the required JavaScript and CSS files and put them in a location they control.

I believe this should only require changes to src/Geta.NotFoundHandler.Admin/Areas/GetaNotFoundHandlerAdmin/Pages/Shared/_Layout.cshtml