Skip to content

Commit 8892975

Browse files
authored
blind edit to enable CORS on /workflows
1 parent 9929cfa commit 8892975

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/commonwl/view/workflow/WorkflowController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.springframework.ui.Model;
4646
import org.springframework.validation.BeanPropertyBindingResult;
4747
import org.springframework.validation.BindingResult;
48+
import org.springframework.web.bind.annotation.CrossOrigin;
4849
import org.springframework.web.bind.annotation.GetMapping;
4950
import org.springframework.web.bind.annotation.PathVariable;
5051
import org.springframework.web.bind.annotation.PostMapping;
@@ -89,6 +90,7 @@ public WorkflowController(WorkflowFormValidator workflowFormValidator,
8990
* @return The workflows view
9091
*/
9192
@GetMapping(value="/workflows")
93+
@CrossOrigin
9294
public String listWorkflows(Model model, @PageableDefault(size = 10) Pageable pageable) {
9395
model.addAttribute("workflows", workflowService.getPageOfWorkflows(pageable));
9496
model.addAttribute("pages", pageable);

0 commit comments

Comments
 (0)