Skip to content

Commit

Permalink
XSS Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sayshark75 committed Jan 8, 2024
1 parent 37b7c59 commit 5627692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/api/mail.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import axios from "axios";
import { mailDataType } from "../TYPES";

const sendMail = async (data: mailDataType) => {
const res = await axios.post(
`${import.meta.env.VITE_EMAIL_SERVICE}/mail`,
data
);
const res = await axios.post(`${import.meta.env.VITE_EMAIL_SERVICE}/mail`, data);
return res.data;
};

Expand Down
2 changes: 2 additions & 0 deletions src/pages/Contact/Contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const Contact = () => {
value={data.name}
placeholder="Your Name"
required
autoComplete="name"
onChange={handleChange}
/>
<Input
Expand All @@ -125,6 +126,7 @@ const Contact = () => {
value={data.email}
placeholder="Your Email"
required
autoComplete="email"
onChange={handleChange}
/>
<Textarea
Expand Down

0 comments on commit 5627692

Please sign in to comment.