Skip to content

Commit

Permalink
Merge pull request #42 from hassaannoor/master
Browse files Browse the repository at this point in the history
Fixed the access-control-allow-headers functionality bug closes #41
  • Loading branch information
drewbaker authored Oct 3, 2023
2 parents fc85374 + cbdf972 commit b86f9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/process-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function wpgraphql_cors_response_headers( $headers ) {

// If custom headers exist apply them
$custom_headers = array();
$acah = get_graphql_setting( 'acah', 'graphql_cors_settings' );
$acah = get_graphql_setting( 'acah', '', 'graphql_cors_settings' );
if ( $acah !== '' ) {
$acah = explode( PHP_EOL, $acah );
$custom_headers = array_merge( $custom_headers, array_map( 'trim', $acah ) );
Expand Down

0 comments on commit b86f9d4

Please # to comment.