• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

torresj / community-api / 2

23 May 2025 01:56PM UTC coverage: 22.105%. First build
2

push

circleci

Jaime Torres Benavente
Project ready to be deployed

42 of 173 new or added lines in 18 files covered. (24.28%)

42 of 190 relevant lines covered (22.11%)

0.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/torresj/community/configs/CorsConfig.java
1
package com.torresj.community.configs;
2

3
import org.springframework.context.annotation.Bean;
4
import org.springframework.context.annotation.Configuration;
5
import org.springframework.web.servlet.config.annotation.CorsRegistry;
6
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
7

8
@Configuration
NEW
9
public class CorsConfig {
×
10
    @Bean
11
    public WebMvcConfigurer corsConfigurer() {
NEW
12
        return new WebMvcConfigurer() {
×
13
            @Override
14
            public void addCorsMappings(CorsRegistry registry) {
NEW
15
                registry.addMapping("/**")
×
NEW
16
                        .allowedMethods("HEAD", "GET", "PUT", "POST", "DELETE", "PATCH");
×
NEW
17
            }
×
18
        };
19
    }
20
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc