Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const APIFile = "/send";
- let data = JSON.stringify({
- name: this.name,
- email: this.email,
- message: this.message
- });
- console.log(data);
- axios.post(APIFile, data, {
- headers: {
- "Content-Type": "application/json"
- }
- });
- _____________________________________________
- plik config/index.js:
- proxyTable: {
- '/send': {
- target: 'http://localhost:8012/portfolio/static/php/mail.php',
- changeOrigin: true
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement