Slack blocks direct browser requests (CORS)
Slack webhooks reject requests from browsers. Use the generated curl or Node.js code below to send from your terminal or server.
Create a webhook at api.slack.com/messaging/webhooks
{
"text": "Hello from MegaDevTools! :wave:"
}curl -X POST 'https://hooks.slack.com/services/XXX/YYY/ZZZ' \
-H 'Content-Type: application/json' \
-d '{
"text": "Hello from MegaDevTools! :wave:"
}'Slack webhooks block browser requests. Copy and run the curl command above in your terminal to send the message.