Slack incoming webhook: Request header field Content-type is not allowed by Access-Control-Allow-Headers in preflight response

That Slack API endpoint unfortunately appears to be broken in its handling of cross-origin requests from frontend JavaScript code—in that it doesn’t handle the CORS preflight OPTIONS request as it should—so the only solution seems to be to omit the Content-Type header. So it looks like you need to remove the following from the headers … Read more