<commit_before><?php

namespace Braindump\Api\Middleware;

class AttachHeaders extends \Slim\Middleware
{
    public function call()
    {
        $this->app->response->headers->set('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
        $this->app->response->headers->set('Access-Control-Allow-Origin', $this->app->braindumpConfig['client_cors_domain']);
        
        // Run inner middleware and application
        $this->next->call();
    }
}
<commit_msg>Allow authorization headers<commit_after><?php

namespace Braindump\Api\Middleware;

class AttachHeaders extends \Slim\Middleware
{
    public function call()
    {
        $this->app->response->headers->set('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, Authorization');
        $this->app->response->headers->set('Access-Control-Allow-Origin', $this->app->braindumpConfig['client_cors_domain']);
        
        // Run inner middleware and application
        $this->next->call();
    }
}

{'fraction_non_alphanumeric': 0.15542521994134897, 'fraction_numerical': 0.0, 'mean_word_length': 3.5714285714285716, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2461506', 'n_tokens_mistral': 295, 'n_tokens_neox': 299, 'n_words': 49}