Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Auto Preflight Bundle Laravel Package

benkle/auto-preflight-bundle

View on GitHub
Deep Wiki
Context7

AutoPreflightBundle

A simple bundle to automatically generate responses for CORS preflight.

Install

Install with composer.

$ composer require benkle/auto-preflight-bundle

Add this to your kernel bundles:

new Benkle\AutoPreflightBundle\BenkleAutoPreflightBundle(),

Configuration

Add this section to your config.yaml:

benkle_auto_preflight:
    allow_origin: '*'
    allow_headers: x-auth-token

Both allow_origin and allow_headers are currently string values, and are send as is to the browser.

You also must use the field methods in your route definitions, or only GET will be available.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle