Finished deserialization and serialization for allowed domains and for error page.