Project

General

Profile

« Previous | Next » 

Revision 51307

added annotation @CrossOrigin(origins = { "*", "null" })

View differences:

modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/dsm/DsmApiController.java
26 26
import static eu.dnetlib.openaire.common.ExporterConstants.*;
27 27

  
28 28
@RestController
29
@CrossOrigin(origins = { "*" })
29
@CrossOrigin(origins = { "*", "null" })
30 30
@ConditionalOnProperty(value = "openaire.exporter.enable.dsm", havingValue = "true")
31 31
@io.swagger.annotations.Api(tags = "OpenAIRE DSM API", description = "the OpenAIRE Datasource Manager API")
32 32
public class DsmApiController extends AbstractExporterController {
modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/community/CommunityApiController.java
12 12
import static eu.dnetlib.openaire.common.ExporterConstants.*;
13 13

  
14 14
@RestController
15
@CrossOrigin(origins = { "*" })
15
@CrossOrigin(origins = { "*", "null" })
16 16
@ConditionalOnProperty(value = "openaire.exporter.enable.community", havingValue = "true")
17 17
@io.swagger.annotations.Api(tags = "OpenAIRE Communities API", description = "the OpenAIRE Community API")
18 18
public class CommunityApiController {
modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/funders/FundersApiController.java
16 16
import org.springframework.web.bind.annotation.*;
17 17

  
18 18
@RestController
19
@CrossOrigin(origins = { "*" })
19
@CrossOrigin(origins = { "*", "null" })
20 20
@ConditionalOnProperty(value = "openaire.exporter.enable.funders", havingValue = "true")
21 21
@io.swagger.annotations.Api(tags = "OpenAIRE funders API", description = "the OpenAIRE funders API")
22 22
public class FundersApiController extends AbstractExporterController {
modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/project/ProjectsController.java
39 39
import org.springframework.web.bind.annotation.RequestParam;
40 40

  
41 41
@Controller
42
@CrossOrigin(origins = { "*" })
42
@CrossOrigin(origins = { "*", "null" })
43 43
@ConditionalOnProperty(value = "openaire.exporter.enable.project", havingValue = "true")
44 44
@io.swagger.annotations.Api(tags = "OpenAIRE projects API", description = "the OpenAIRE projects API")
45 45
public class ProjectsController extends AbstractExporterController {

Also available in: Unified diff