<commit_before>package com.drumonii.loltrollbuild.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Configuration for Web MVC components.
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

	@Override
	public void addCorsMappings(CorsRegistry registry) {
		// for Angular
		registry.addMapping("/**")
				.allowedOrigins("http://localhost:4200")
				.allowCredentials(true);
	}

}<commit_msg>Expose the Location header in Cors<commit_after>package com.drumonii.loltrollbuild.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Configuration for Web MVC components.
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

	@Override
	public void addCorsMappings(CorsRegistry registry) {
		// for Angular
		registry.addMapping("/**")
				.allowedOrigins("http://localhost:4200")
				.allowCredentials(true)
				.exposedHeaders("Location");
	}

}
{'fraction_non_alphanumeric': 0.10786699107866991, 'fraction_numerical': 0.006488240064882401, 'mean_word_length': 5.634408602150538, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3436003', 'n_tokens_mistral': 374, 'n_tokens_neox': 349, 'n_words': 64}