Skip to content

Commit

Permalink
Attempt fix for 500 error on Railway - @crossorigin added
Browse files Browse the repository at this point in the history
  • Loading branch information
augustinecyr committed Apr 23, 2023
1 parent 7aaf656 commit cc9b98a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class ContactController {
private EmailService emailSvc;

@PostMapping(path = "/contact", consumes = "multipart/form-data")
@CrossOrigin(origins = "*", allowedHeaders = "*")
public ResponseEntity<String> postContact(@ModelAttribute Contact form) throws IOException {
String email = form.getEmail();
String title = form.getTitle();
Expand Down

1 comment on commit cc9b98a

@vercel
Copy link

@vercel vercel bot commented on cc9b98a Apr 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.