This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Content type not set correctly due to no-cors #63
Labels
Comments
I have only been using the template pattern in the url and ignoring the body. Do you know if the server is open to CORS? If it is we could enable the preflight options check. |
I do not know. But i'll play with it. I actually hacked it to send the body as URL encoded (which works). |
Should probably default to that instead. Opened #69 . |
andyshinn
added a commit
to andyshinn/chrome-meet-webhook-extension
that referenced
this issue
Jan 25, 2021
andyshinn
added a commit
to andyshinn/chrome-meet-webhook-extension
that referenced
this issue
Jan 25, 2021
jpoehnelt
pushed a commit
that referenced
this issue
Jun 27, 2022
jpoehnelt
pushed a commit
that referenced
this issue
Jun 27, 2022
Merged
🎉 This issue has been resolved in version 1.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi. Cool idea.
I was trying to get this working with Home Assistant incoming webhook (https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger) and noticed that the webhook being sent is not actually of
Content-Type: application/json
(event though it is set that way): https://github.com/jpoehnelt/chrome-meet-webhook-extension/blob/master/src/webhook.ts#L37-L39. MyPOST
requests are sent astext/html
and Home Assistant doesn't use the body so my data is empty.Upon closer debugging I found the
fetch()
API documentation calling out the headers limitation at https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch:It looks like POSTing JSON is at odds with the
no-cors
option. Are you actually using this in Chrome and successfully POSTing as JSON?The text was updated successfully, but these errors were encountered: