Very simple change to allow use of this library with single page applications. With SPAs we need the application to handle all errors, so in both cloudFront resources I modify the custom_error_response to return a 200 response and point to the index_document file that was provided to the module.
Very simple change to allow use of this library with single page applications. With SPAs we need the application to handle all errors, so in both
cloudFront
resources I modify thecustom_error_response
to return a200
response and point to theindex_document
file that was provided to the module.