Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject additional headers #10

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

yassineselmi
Copy link

@yassineselmi yassineselmi commented Nov 10, 2023

This PR offers the possibility to inject additional headers to the Langflow request. The main motivation behind this is to allow the user to send custom headers to bypass WAF or Security guardrails, as well as enforce CORS policies.

Example of usage:

<langflow-chat
    chat_input_field="input"
    chat_inputs='{"input":""}'
    host_url="langflow url"
    flow_id="your_flow_id"
    additional_headers='{"Access-Control-Allow-Origin": "myserver.com", "CF-Access-Client-Id": "1235678"}'
  ></langflow-chat>

@anovazzi1
Copy link
Collaborator

lgtm

@anovazzi1 anovazzi1 merged commit e5d97ee into langflow-ai:main Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants