awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
fruitcake avatar

fruitcake/laravel-corsArchived

0
View on GitHub↗
6,240 stars·607 forks·PHP·MIT·14 views

Laravel Cors

This project is a CORS header manager and security plugin for Laravel. It functions as middleware that adds Cross-Origin Resource Sharing headers to HTTP responses to control how external domains access a Laravel backend.

The software manages cross-origin request policies by defining allowed origins, methods, and headers. It handles pre-flight requests and allows for the restriction of sharing policies based on specific routes.

The package provides API access control and cross-domain resource sharing by integrating custom header logic into the Laravel request lifecycle.

Features

  • Cross-Origin Resource Sharing (CORS) Policies - Provides a comprehensive mechanism to restrict or allow web requests from different origins using CORS headers.
  • CORS Header Injection - Automatically appends Access-Control-Allow-Origin headers to HTTP responses to manage browser same-origin policies.
  • API Access Control - Implements granular authorization policies for web service endpoints to control external origin access.
  • CORS Header Management - Defines allowed origins, methods, and headers for incoming requests based on the CORS protocol.
  • CORS Header Restrictions - Defines which custom request headers are permitted to ensure authorization tokens and credentials are accepted.
  • Cross-Domain Request Handling - Implements browser patterns to enable secure data exchange between clients and servers on different origins.
  • CORS Middleware - Provides a Laravel middleware that adds Cross-Origin Resource Sharing headers to HTTP responses.
  • CORS Pre-Flight Handling - Intercepts OPTIONS requests to return validity headers before the actual application logic is executed.
  • Route-Based Access Restrictions - Enforces cross-origin access restrictions based on specific URL patterns.
  • Configuration-Driven Dispatchers - Implements a pattern that uses configuration files to route requests to specific CORS handlers.
  • Route-Based CORS Filtering - Applies cross-origin restrictions based on a defined list of URL patterns within the routing layer.
  • Laravel Integrations - Integrates custom CORS header logic into the Laravel request lifecycle via middleware.
  • CORS Configuration - Manages Cross-Origin Resource Sharing headers specifically within Laravel applications.
  • Request-Response Interceptors - Uses framework interceptors to modify outgoing HTTP responses globally.

Star history

Star history chart for fruitcake/laravel-corsStar history chart for fruitcake/laravel-cors

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Laravel Cors

These projects share indexed features with Laravel Cors. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • barryvdh/laravel-corsbarryvdh avatar

    barryvdh/laravel-cors

    6,240View on GitHub↗

    laravel-cors is a middleware package for Laravel applications that manages Cross-Origin Resource Sharing. It functions as an HTTP security layer that validates request origins and injects the necessary headers into application responses to control how external domains access a backend API. The project provides a configuration-driven policy engine to match incoming request origins and methods against allowed values. This includes support for wildcard origin matching to authorize multiple trusted domains through a single rule and the automatic handling of pre-flight OPTIONS requests. The syste

    PHP
    View on GitHub↗6,240
  • expressjs/corsexpressjs avatar

    expressjs/cors

    6,194View on GitHub↗

    This is a Node.js middleware for Express and Node.js servers that manages Cross-Origin Resource Sharing policies. It functions as a policy manager and origin validator to define which origins, HTTP methods, and headers are permitted to access server resources. The project provides mechanisms for dynamic origin validation, allowing request origins to be checked against custom logic or databases. It also acts as an HTTP preflight request handler to process OPTIONS requests and verify server permissions before complex cross-site interactions occur. Its capability surface covers the management o

    JavaScriptcorsexpressjsjavascript
    View on GitHub↗6,194
  • adamchainz/django-cors-headersadamchainz avatar

    adamchainz/django-cors-headers

    5,587View on GitHub↗

    django-cors-headers is a middleware for Django that manages Cross-Origin Resource Sharing headers to control which external domains can access server resources. It serves as a security component for enforcing access control policies through origin validation and header management. The project provides capabilities for origin whitelisting using hostnames or regular expressions and supports the Local Network Access specification to permit requests from private networks. It allows for granular control via path-based restrictions and dynamic origin validation driven by a signal system. The softw

    Python
    View on GitHub↗5,587
  • ottoyiu/django-cors-headersottoyiu avatar

    ottoyiu/django-cors-headers

    5,587View on GitHub↗

    django-cors-headers is a Django application utility for managing cross-origin resource sharing. It adds HTTP headers to responses so web browsers can permit cross-origin requests from specified external domains. The project provides tools for defining which external domains, HTTP methods, and headers are permitted to access an API. It supports restricting allowed origins through static lists and regular expressions, and it enables the transmission of cookies and authentication credentials for cross-site session handling. Additional capabilities include API access control to limit cross-origi

    Python
    View on GitHub↗5,587
Compare all 30 related projects→

Frequently asked questions

What does fruitcake/laravel-cors do?

This project is a CORS header manager and security plugin for Laravel. It functions as middleware that adds Cross-Origin Resource Sharing headers to HTTP responses to control how external domains access a Laravel backend.

What are the main features of fruitcake/laravel-cors?

The main features of fruitcake/laravel-cors are: Cross-Origin Resource Sharing (CORS) Policies, CORS Header Injection, API Access Control, CORS Header Management, CORS Header Restrictions, Cross-Domain Request Handling, CORS Middleware, CORS Pre-Flight Handling.

Which projects share features with fruitcake/laravel-cors?

Projects with overlapping indexed features include: barryvdh/laravel-cors — laravel-cors is a middleware package for Laravel applications that manages Cross-Origin Resource Sharing. It functions… expressjs/cors — This is a Node.js middleware for Express and Node.js servers that manages Cross-Origin Resource Sharing policies. It… adamchainz/django-cors-headers — django-cors-headers is a middleware for Django that manages Cross-Origin Resource Sharing headers to control which… ottoyiu/django-cors-headers — django-cors-headers is a Django application utility for managing cross-origin resource sharing. It adds HTTP headers… typicode/jsonplaceholder — JSONPlaceholder is a REST API mock server and JSON mocking service that provides a hosted frontend development… improbable-eng/grpc-web — grpc-web is a translation layer and proxy system that enables web browsers to communicate with gRPC backend services.…