Guardado automático de log de errores en base de datos, te permite crear un Id de identificación del error para que pueda ser inspeccionado como un ticket de atención. Notas:Version 8.0.11 * Implementación opcional de ProblemDetails * Incremento del performance * Corrección de bug con el DbContext al tener alta concurrencia. _ QueryString: captura de parametros de la URL. _ Protocol: captura el protocolo de la petición http. _ Scheme: captura el esquema de la petición http. _ MinCategory: establece el guardado mínimo. _ IpAddress: puede tomar una variable de los headers. _ RequestId: puede tomar una variable de los headers. _ Duration: ahora captura el tiempo transcurrido. _ RequestHeader: ahora se guarda como diccionario en Base de datos _ EnableBuffering: ahora puedes deshabilitar la lectura de los body. _ InternalServerErrorMessage: ahora puedes establecer tu propio mensaje. _ ApplicationErrorMessage: ahora puedes establecer tu propio mensaje.
Http headers meta-information, used in Atlas
Provides a programming interface for modern HTTP applications, including HTTP client components that allow applications to consume web services over HTTP and HTTP components that can be used by both clients and servers for parsing HTTP headers. Commonly Used Types: System.Net.Http.HttpResponseMessage System.Net.Http.DelegatingHandler System.Net.Http.HttpRequestException System.Net.Http.HttpClient System.Net.Http.MultipartContent System.Net.Http.Headers.HttpContentHeaders System.Net.Http.HttpClientHandler System.Net.Http.StreamContent System.Net.Http.FormUrlEncodedContent System.Net.Http.HttpMessageHandler - 1548494
A middleware to configure and add security headers to HTTP responses.
Provides a programming interface for modern HTTP applications, including HTTP client components that allow applications to consume web services over HTTP and HTTP components that can be used by both clients and servers for parsing HTTP headers. Commonly Used Types: System.Net.Http.HttpResponseMessage System.Net.Http.DelegatingHandler System.Net.Http.HttpRequestException System.Net.Http.HttpClient System.Net.Http.MultipartContent System.Net.Http.Headers.HttpContentHeaders System.Net.Http.HttpClientHandler System.Net.Http.StreamContent System.Net.Http.FormUrlEncodedContent System.Net.Http.HttpMessageHandler - 1548494
Temporary abstractions for working with header values in ASP.NET MVC. These abstractions will be replaced by core HTTP abstractions in ASP.NET in a future release.
Provides a programming interface for modern HTTP applications, including HTTP client components that allow applications to consume web services over HTTP and HTTP components that can be used by both clients and servers for parsing HTTP headers. Commonly Used Types: System.Net.Http.HttpResponseMessage System.Net.Http.DelegatingHandler System.Net.Http.HttpRequestException System.Net.Http.HttpClient System.Net.Http.MultipartContent System.Net.Http.Headers.HttpContentHeaders System.Net.Http.HttpClientHandler System.Net.Http.StreamContent System.Net.Http.FormUrlEncodedContent System.Net.Http.HttpMessageHandler - 1548494
WebApi.Pagination allows you to easily add Range Header-based pagination to existing WebAPI endpoints that operate on IQueryable data sources.
A lightweight server. Server, Proxy and Balancer in one package. Compression, Range, Conditionals, Redirects and etc headers processing. Server console with authorization, CoreAPI, API handling via attributes and many other tools. Read more on nuget or github.
Build up Security Headers in a (semi) modular way. To use in an ASP.Net Core web project. In startup.cs - add the following private members to the startup class private SecurityHeaders _securityHeaders { get; set; } private List<CspFrame> _cspFrames { get; set; } And the following two private methods (and alter as you need to). These do reference the samples nuget package. private List<CspFrame> AssembleContentSecurityPolicies() { var defCspFrame = new CspFrame().Initialise("default"); defCspFrame.Clauses .AddUpdateClause("script-src", "", "'unsafe-eval'") .AddUpdateClause("style-src", "", "'unsafe-inline'") .AddUpdateClause("img-src", "", "data:") .AddUpdateClause("plugin-types", "", "application/pdf") .AddUpdateClause("frame-ancestors", "", "'none'") .AddUpdateClause("report-uri", "", "/cspreport"); var basicCdnCspFrame = new CspFrame().Initialise("basicCdn"); basicCdnCspFrame.Clauses .AddUpdateClause("default-src", "", "https://maxcdn.bootstrapcdn.com/") .AddUpdateClause("script-src", "", "https://ajax.googleapis.com/ https://code.jquery.com/ https://cdnjs.cloudflare.com/") .AddUpdateClause("style-src", "", "https://fonts.googleapis.com/") .AddUpdateClause("font-src", "", "https://fonts.gstatic.com/") .AddUpdateClause("img-src", "", "https://csi.gstatic.com/"); var googleMapsCspFrame = new CspFrame().GoogleMaps(); var stripeCspFrame = new CspFrame().Stripe(); return new List<CspFrame> { defCspFrame, basicCdnCspFrame, googleMapsCspFrame, stripeCspFrame }; } /// <summary> /// Returns a merged copy of all relevant CspFrames - adding in the Dev CspFrame if required /// </summary> /// <param name="env"></param> /// <returns></returns> private CspFrame BuildContentSecurityPolicy(IHostingEnvironment env) { if (_cspFrames == null || !_cspFrames.Any()) { _cspFrames = AssembleContentSecurityPolicies(); } // Assemble the master CSP var masterCsp = _cspFrames.Merge(); if (env.IsDevelopment()) { var localhostSp = "localhost:56993/"; var stripe = "http://checkout.stripe.com/"; // Note that this dev CSP includes the http versions for Stripe var devCspFrame = new CspFrame().Initialise("dev"); devCspFrame.Clauses.AddUpdateClause("default-src", "", "http://localhost:5000/") .AddUpdateClause("connect-src", "", "http://" + localhostSp + " ws://" + localhostSp + " " + stripe) .AddUpdateClause("script-src", "", "http://" + localhostSp + " " + stripe); masterCsp = masterCsp.Merge(devCspFrame); } return masterCsp; } Finally include the following in the configuration method just before app.UseMvc( ... // Set up the overall Security Headers // This will also assemble the _cspFrames object if required if (_securityHeaders == null) { _securityHeaders = app.BuildSecurityHeaders(BuildContentSecurityPolicy(env)); } else { _securityHeaders.Csp = BuildContentSecurityPolicy(env); } app.UseSecurityHeaders(_securityHeaders);
Proxy information consumer for ASP.Net. Reads X-Forwarded-For and X-Forwarded-Proto headers from trusted proxies, and replaces the client ip with this information.
A few useful extensions for making testing against the PeanutButter.SimpleHTTPServer.HttpServer cleaner and easier to read, providing extensions to: - test for requests - test for headers
SelectPdf Html To Pdf Converter for .NET Core - Community Edition is the free version of the powerful html to pdf converter available in SelectPdf Library for .NET Core and .NET 5-8. The converter offers a lot of powerful options (convert any web page to pdf, convert any html string to pdf, html5/css3/javascript support, headers and footers support, etc) and the only limitation is that it can generate pdf documents up to 5 pages long. Free Html to Pdf Converter For .NET – Community Edition Features: Generate pdf documents up to 5 pages, Convert any web page to pdf, Convert any raw html string to pdf, Set pdf page settings (page size, page orientation, page margins), Resize content during conversion to fit the pdf page, Set pdf document properties, Set pdf viewer preferences, Set pdf security (passwords, permissions), Set conversion delay and web page navigation timeout, Custom headers and footers, Support for html in headers and footers, Automatic and manual page breaks, Repeat html table headers on each page, Support for @media types screen and print, Support for internal and external links, Generate bookmarks automatically based on html elements, Support for HTTP headers, Support for HTTP cookies, Support for web pages that require authentication, Support for proxy servers, Enable/disable javascript, Modify color space, Multithreading support, HTML5/CSS3 support, Web fonts support and many more.
Use this client SDK to Call CyberSource REST API's. This SDK includes generates both HTTP Signature and JWT headers (including authentication headers) for the API requests.
51Degrees Device Detection parses HTTP headers to return detailed hardware, operating system, browser, and crawler information for the devices used to access your website or service. This package contains shared classes used by the device detection engines.
51Degrees Device Detection parses HTTP headers to return detailed hardware, operating system, browser, and crawler information for the devices used to access your website or service. This package is an implementation of the device detection hash engine. CMake is used to build the native binaries.
51Degrees Device Detection parses HTTP headers to return detailed hardware, operating system, browser, and crawler information for the devices used to access your website or service. This package retrieves device detection results by consuming the 51Degrees cloud service.
This package will reduce the server information that is disclosed to your visitors. It removes the following http headers: "Server" "X-AspNet-Version" "X-AspNetMvc-Version" "X-Powered-By" It is compatible with async operations in MVC and WebAPI as it does not rely on the PreSendRequestHeaders event.
51Degrees Device Detection parses HTTP headers to return detailed hardware, operating system, browser, and crawler information for the devices used to access your website or service. This is an alternative to popular UAParser, DeviceAtlas, and WURFL packages.
This package contains an ASP.NET Core middleware to validate signed http requests with the Medidata MAuth protocol. The middleware communicates with an MAuth server in order to confirm the validity of the request authentication header. Include this package in your ASP.NET Core web api if you want to authenticate the api requests signed with the MAuth protocol.
Orchard Core CMS is a Web Content Management System (CMS) built on top of the Orchard Core Framework. The Security module adds HTTP headers to follow security best practices.
Generic HTTP client implementation for .NET, based on Tolitech.HttpClients.Abstractions, with full support for JSON and custom headers.
AspNetHeaderReplicator: Middleware for replicating HTTP request headers into response headers efficiently with the rules you determined.
Generic HTTP service implementation for .NET, based on Tolitech.HttpServices.Abstractions, with full support for JSON and custom headers.
Semantically rich parsing for HTTP headers
An extension to AspNetCore HttpOverrides middleware that adds support for X-Forwared-PathBase.
WebApi.LinkHeader allows you to easily add HTTP Link headers to existing WebAPI endpoints.
This project is a spin-off of the original "Throttling Suite for ASP.NET Applications" with improved capabilities providing implementation for .NET Web API framework. The implementation supports all available hosting options provisioning equal functionality for IIS-hosted and OWIN self-hosted solutions. It is specifically designed to throttle high performance and high throughput Web API applications. The library contains multiple controller types implementing different throttling algorithms: Linear throttling - limits the number of calls by enforcing consistent delay between consequent requests; Short Average - limits the number of calls by specified number of requests per configured duration; it does not intend to limit the overall number of requests, but rather assures blocking excessive requests; this strategy is very helpful to cut the requests floods; Long Average - limits the number of calls by specified number of requests per configured duration; this strategy limits an overall number of calls within long time duration; this is also known as applying penalty to the client for excessive application use. Each throttling controller is capable of unique client determination and management. The throttling for any end-point, or set of end-points can be configured either for the entire application, or per-client. It does not purely rely on client IP address, allowing multiple clients from the same network concurrently making requests to the server. The Throttling Suite allows setting multiple controllers within the application and applying each to a pre-filtered traffic. The filters are also configurable. The Throttling Suite provides two modes: real blocking mode when request is blocked with 429 HTTP Status code and log-only mode. The code is highly optimized having very low memory impact. The throttling evaluation functionality takes less than 0.3 ms to run. The v1.2 is updated to include "Retry-After" response header in the blocked response helping API client to negotiate the request rate with API server side. The v1.2 also allows to ignore the actual request URL substituting one with Throttling controller instance scope. This provides the benefit to count requests for multiple API endpoints toward the same throttling threshold. The v1.3 enables configuration from the code rather than XML *.config file.
Provides support for client-side paging (TotalCount header) and server-side query limits for services that expose IQueryable<T> resources.
Attaches the "Authorization: Bearer ...token..." HTTP header to each Web Service call using an EndpointBehavior and MessageInterceptor
Automatic detection and processing of content-type and accept-type / Builtin XML (using YAXLib), JSON (using Json.Net) and Text serializers / Supports HTTP Basic authentication / Uses MEF for importing user defined serializers and authenticators / All HTTP-Methods supported + any other string as method / Help-Page for services showing methods and registered serializers/authenticators / Internal exception handling with correct HttpStatusCode response / Send any HttpStatusCode on error using RestException / Can rethrow exceptions if user wants to log them in Application_Error / Reads parameters from Headers, Cookies, Uri and posted Querystrings / Supports WrappedRequest allowing multiple non primitive parameters / Supports WrappedResponse (return type must be ArrayList) / ServiceContract can be an interface / Support for uploading files (using HttpPostedFile) / Works best with RestSharp
The Cuemon.AspNetCore,Mvc namespace contains types that specializes in cache expiration and validation models and an abundant range of ready-to-use filters in the ASP.NET Core MVC pipeline. The namespace is an addition to the Microsoft.AspNetCore.Mvc namespace.
Sidio.Web.Security.AspNetCore provides services and middleware to secure ASP.NET Core applications.
Sidio.Web.Security provides the core functionality to secure web applications. It is useful to use this package if .NET Framework is still in use. Otherwise, use Sidio.Web.Security.AspNetCore.
Sidio.Web.Testing provides testing functionality that can be used to verify that the security headers are set correctly.
Winnovative PDF Chromium for .NET is a library that can be easily integrated into any type of .NET application to convert web pages and HTML strings to PDF or to image. The HTML to PDF converter component of the library uses a rendering engine based on Chromium, which can render all modern HTML, CSS and JavaScript content in conformance with the latest standards. The .NET library in this package targets .NET Standard 2.0 and can be used in any .NET Core or .NET Framework application compatible with this standard. The native runtime is compatible with Linux 64-bit platforms. This package is fully compatible with Azure App Service and Azure Functions applications for the Linux platform. There is also a separate similar package for Windows platforms containing the same .NET library but with a different native Chromium runtime. The compatibility list of this package includes the following platforms: * Linux 64-bit Distributions * .NET Core 9.0, 8.0, 7.0, 6.0, 5.0, .NET Standard 2.0 * Azure App Service and Azure Functions for Linux * Azure Linux Virtual Machines * Web, Console, Desktop applications, Docker Main Features: * Create PDF documents from HTML with CSS, SVG, Web Fonts and JavaScript * Support the latest standards and technologies * Create PDF headers and footers with page numbering from HTML templates * Repeat HTML table header and footer in PDF pages * Control PDF page breaks using CSS attributes in HTML * Create PDF outline and table of contents from HTML heading tags * Create tagged PDF documents for accessibility features * Automatic and manual conversion triggering modes * Render for screen or print media types * Set PDF viewer preferences * Set PDF security features and add digital signatures * Set HTTP headers and cookies * Request HTML pages with GET and POST HTTP methods * Convert HTML pages that require authentication * Convert HTML to JPEG, PNG and WEBP raster images
Winnovative PDF Chromium for .NET is a library that can be easily integrated into any type of .NET application to convert web pages and HTML strings to PDF or to image. The HTML to PDF converter component of the library uses a rendering engine based on Chromium, which can render all modern HTML, CSS and JavaScript content in conformance with the latest standards. The .NET library in this package targets .NET Standard 2.0 and can be used in any .NET Core or .NET Framework application compatible with this standard. The native runtime is compatible with Windows 64-bit platforms. This package is fully compatible with Azure App Service and Azure Functions applications for the Windows platform. There is also a separate similar package for Linux platforms containing the same .NET library but with a different native Chromium runtime. The compatibility list of this package includes the following platforms: * Windows 10, Windows Server 2016 64-bit and above * .NET Core 9.0, 8.0, 7.0, 6.0, 5.0, .NET Standard 2.0 * .NET Framework 4.6.2 to 4.8.1 * Azure App Service and Azure Functions for Windows * Azure Windows Cloud Services and Virtual Machines * Web, Console, Desktop, Docker Main Features: * Create PDF documents from HTML with CSS, SVG, Web Fonts and JavaScript * Support the latest standards and technologies * Create PDF headers and footers with page numbering from HTML templates * Repeat HTML table header and footer in PDF pages * Control PDF page breaks using CSS attributes in HTML * Create PDF outline and table of contents from HTML heading tags * Create tagged PDF documents for accessibility features * Automatic and manual conversion triggering modes * Render for screen or print media types * Set PDF viewer preferences * Set PDF security features and add digital signatures * Set HTTP headers and cookies * Request HTML pages with GET and POST HTTP methods * Convert HTML pages that require authentication * Convert HTML to JPEG, PNG and WEBP raster images
EvoPdf Chromium for .NET is a library that can be easily integrated into any type of .NET application to convert web pages and HTML strings to PDF or to image. The HTML to PDF converter component of the library uses a rendering engine based on Chromium, which can render all modern HTML, CSS and JavaScript content in conformance with the latest standards. The .NET library in this package targets .NET Standard 2.0 and can be used in any .NET Core or .NET Framework application compatible with this standard. The native runtime is compatible with Windows 64-bit platforms. This package is fully compatible with Azure App Service and Azure Functions applications for the Windows platform. There is also a separate similar package for Linux platforms containing the same .NET library but with a different native Chromium runtime. The compatibility list of this package includes the following platforms: * Windows 10, Windows Server 2016 64-bit and above * .NET Core 9.0, 8.0, 7.0, 6.0, 5.0, .NET Standard 2.0 * .NET Framework 4.6.2 to 4.8.1 * Azure App Service and Azure Functions for Windows * Azure Windows Cloud Services and Virtual Machines * Web, Console and Desktop applications, Docker Main Features: * Create PDF documents from HTML with CSS, SVG, Web Fonts and JavaScript * Support the latest standards and technologies * Create PDF headers and footers with page numbering from HTML templates * Repeat HTML table header and footer in PDF pages * Control PDF page breaks using CSS attributes in HTML * Create PDF outline and table of contents from HTML heading tags * Create tagged PDF documents for accessibility features * Automatic and manual conversion triggering modes * Render for screen or print media types * Set PDF viewer preferences * Set PDF security features and add digital signatures * Set HTTP headers and cookies * Request HTML pages with GET and POST HTTP methods * Convert HTML pages that require authentication * Convert HTML to JPEG, PNG and WEBP raster images
EvoPdf Chromium for .NET is a library that can be easily integrated into any type of .NET application to convert web pages and HTML strings to PDF or to image. The HTML to PDF converter component of the library uses a rendering engine based on Chromium, which can render all modern HTML, CSS and JavaScript content in conformance with the latest standards. The .NET library in this package targets .NET Standard 2.0 and can be used in any .NET Core or .NET Framework application compatible with this standard. The native runtime is compatible with Linux 64-bit platforms. This package is fully compatible with Azure App Service and Azure Functions applications for the Linux platform. There is also a separate similar package for Windows platforms containing the same .NET library but with a different native Chromium runtime. The compatibility list of this package includes the following platforms : * Linux 64-bit Distributions * .NET Core 9.0, 8.0, 7.0, 6.0, 5.0, .NET Standard 2.0 * Azure App Service and Azure Functions for Linux * Azure Linux Virtual Machines * Web, Console and Desktop applications, Docker Main Features: * Create PDF documents from HTML with CSS, SVG, Web Fonts and JavaScript * Support the latest standards and technologies * Create PDF headers and footers with page numbering from HTML templates * Repeat HTML table header and footer in PDF pages * Control PDF page breaks using CSS attributes in HTML * Create PDF outline and table of contents from HTML heading tags * Create tagged PDF documents for accessibility features * Automatic and manual conversion triggering modes * Render for screen or print media types * Set PDF viewer preferences * Set PDF security features and add digital signatures * Set HTTP headers and cookies * Request HTML pages with GET and POST HTTP methods * Convert HTML pages that require authentication * Convert HTML to JPEG, PNG and WEBP raster images
4.6.5 - Microsoft.Extensions.Logging package added 4.6.4 - HybridModelBinding updated to 0.17.0 on net8.0 target framework 4.6.3 - Dotnet 8.0 target framework added for minimal api 4.6.2 - Dotnet 8.0 target framework added 4.5.6 - Added a property named overrideMessageAndCode to the CarbonException class. The default value of this property is set to true. In the constructor of CarbonException, check this property to determine whether the message and code are overridden or not. - Update IPageableDto validator for assign PageSize 0. When PageSize 0 the datas returns without pagination with development in version 4.5.3. 4.5.3 - Upgrade Carbon.PagedList (Remove pageSize and pageNumber validation check) 4.5.2 - Updated Carbon.Common nuget package (Added StringExtensions class with ReplaceTurkishChars and ContainsTurkishIgnoreCase methods) 4.5.0 - Degraded health check HTTP status code changed as custom 218 (This Is Fine) status code. Because even if system is degraed it should be working normally, so returning 5XX status code is not right for degraded state. 4.4.1 - Cors should come first before authentication and authorization in startup pipeline 4.4.0 - Carbon.Common updated and Serilog.Enrichers.Sensitive Enricher added for masking sensitive values within logs. 4.3.0 - OwnershipFilter check now disregards solution id header during endpoint permission check 4.2.1 - UnauthorizedOperationException response body is fixed 4.2.0 - UnauthorizedOperationException handling is added 4.1.9 - Carbon.Common updated and IQueryable OrderBy extension method bug fixed 4.1.8 - Carbon.Common updated and nested ordering achieved 4.1.7 - Add CorrelationId to log OnException 4.1.6 - Cors Policy changes(Location parameter is added to WithExposedHeaders) 4.1.5 - ApiPagedResponse is added for PagedListOk. 4.1.4 - Some dependencies updated. 4.1.3 - Cors Allow Credentials support added with any origin accepted - Cors Wildcards accepted 4.1.1 - CarbonException messages are take arguments for dynamic exception messages 4.1.0 - Critical bug fixed for Directory separator char to specific platform (Windows,Linux) 4.0.0 - Carbon now supports Dotnet 6 in terms of both minimal and not minimal - Fluent Validation Upgraded - Swagger Upgraded - BodyRewind deprecated, thus RoleFilteredDto is now unsupported as it is unnecessary just after repository-level validation introduced - Some Performance Improvements
Portuguese localization for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Contains both IdentityErrorDescriber and IdentityBuilderExtension to register the Describer. For multilanguage support based on HTTP headers consider using PiotrTrojan.AspNetCore.IdentityErrorLocalization.Multilang nuget with proper factory.
HTTP module, removes unwanted response headers.
Localizations for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Resolved describer is based on "accept-language" HTTP request header. Contains localizations French, German, Persian, Polish, Portuguese, Portuguese-BR, Russian, Spanish and Turkish. Contains Extensions to register proper Factory and Describer.
A small package for ASP.Net (Core) to automatically configure secure HTTP-Headers.
A strongly typed API for HTTP headers
An implementation of http://email-invoice-format.org/ for .NET
Russian localization for IdentityErrorDescriber (Microsoft.AspNetCore.Identity) for .net 5. Contains both IdentityErrorDescriber and IdentityBuilderExtension to register the Describer. For multilanguage support based on HTTP headers consider using PiotrTrojan.AspNetCore.IdentityErrorLocalization.Multilang nuget with proper factory.
This is a plug-in dashboard that outputs a large amount of information about a web application's current state. This includes information about compilation options and extensions, the .NET version, server information and environment, the PHP environment, OS version information, paths, master and local values of configuration options, and HTTP headers.
A parser for RFC 8941 Structured Field Values for HTTP.