cancel
Showing results for 
Search instead for 
Did you mean: 

Local fulfillment http request CORS issue

renson
Community Member

Is there any option to circumvent/avoid the CORS preflight when sending a PUT request to my smart home  device from a google Nest or Hub?

I am sending a PUT request my local API, but I get an error (405) because my REST API has no OPTIONS call. Apparently smarthome sends a CORS preflight OPTIONS call first.

1 Recommended Answer

sipriyadarshi
Solutions Expert
Solutions Expert
  • Local fulfillment can only be used to access devices locally. You won’t be able to send HTTP requests to destinations resolving outside of the local ip. Please verify if your target resides in the local network.
  • If you are still having issues talking to your devices using the Local API, please open up a ticket in the Public Issue Tracker and share details around your local fulfillment, including if your device is controlled by HTTP and the expected request payload.

View Recommended Answer in original post

1 REPLY 1

sipriyadarshi
Solutions Expert
Solutions Expert
  • Local fulfillment can only be used to access devices locally. You won’t be able to send HTTP requests to destinations resolving outside of the local ip. Please verify if your target resides in the local network.
  • If you are still having issues talking to your devices using the Local API, please open up a ticket in the Public Issue Tracker and share details around your local fulfillment, including if your device is controlled by HTTP and the expected request payload.