Version 3.0.0-beta006

Beta
Date 2020-03-23 (1,698 days ago)
Downloads 859 downloads
NuGet View on NuGet
GitHub View on GitHub
Target Frameworks .NET 4.7.2
Umbraco Versions Umbraco 8

#installation">Installation

#changelog">Changelog

  • Updated SpaPublishedContentContractResolver to support serializing instances of HtmlString and IHtmlString (see 962b728 and 1d38052)
    By default, JSON.net will serialize instances to an empty JSON object. With this release and when using SpaPublishedContentContractResolver, instances will now be serialized to a string with the actual HTML value.

  • Added null check because context.Response may be null in some cases when using the AccessControlAllowOrigin attribute (see 64eba8c)
    If an API method, where the AccessControlAllowOrigin attribute is used, throws an exception, context.Response will be null. With this release, using the attribute will no longer trigger a null reference exception.

  • Value used in AccessControlAllowOriginAtttibute class shouldn't be hardcoded (see 996f942)
    A constructor overload allows developers to set their own value for the header, but the value used when setting the header was still hardcoded to *. With this release, the used value now reflects the value set via the constructor.

  • Added some error handling to the SpaRequestHelper.GetResponse method (see e11c692)
    If debug is enabled and text/html is present in the accept header of the request, the SPA API will now return a friendly HTML error page if the API throws an exception.