DEV Community

Discussion on: Discord Webhook Powered Contact Form

Collapse
 
mistval profile image
Randall

You're having CORS errors from the POST request to the Discord webhook? I wouldn't expect that but it's possible something has changed on Discord's side. In this case an opaque response should be fine, so if you just add mode: 'no-cors' to the fetch request, that may resolve your issue.

Collapse
 
girattlegfx profile image
David Ackerman

Oh okay, cool. How exactly do I do that?

Thread Thread
 
girattlegfx profile image
David Ackerman

NVM on that lol, i got it but now im getting a 403 error. Which made me think, if i am not allowed to use the link why not just call the webhook id and token using discord.js xD not sure if it'll work but imma try lol. Thanks for your help! And the article 😂