Skip to content

Ability to add headers to ajax response. #4973#4983

Merged
TomJaeger merged 1 commit intoExpressionEngine:7.devfrom
DONEILL-emp:feature/4973-send-ajax-response-headers
Dec 2, 2025
Merged

Ability to add headers to ajax response. #4973#4983
TomJaeger merged 1 commit intoExpressionEngine:7.devfrom
DONEILL-emp:feature/4973-send-ajax-response-headers

Conversation

@DONEILL-emp
Copy link
Contributor

Addresses: #4973

Ability to set headers on Ajax responses(send_ajax_response as per _display)

Example:

ee()->output->set_header("Cache-Control: public, max-age={$max_age}");
ee()->output->set_header('Expires: ' . $expires);
ee()->output->send_ajax_response($data);

@CLAassistant
Copy link

CLAassistant commented Sep 17, 2025

CLA assistant check
All committers have signed the CLA.

@TomJaeger TomJaeger added this to the 7.x milestone Oct 9, 2025
@TomJaeger TomJaeger modified the milestones: 7.x, 7.5.18 Nov 5, 2025
@TomJaeger TomJaeger merged commit 3761333 into ExpressionEngine:7.dev Dec 2, 2025
24 checks passed
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.

4 participants