Welcome to the Family Echo Q&A forum. In order to ask or answer questions, please ensure you sign in at Family Echo first.
Welcome to Family Echo Q&A, where you can ask questions and receive answers from other members of the community.

In order to ask or answer questions, please ensure you sign in at Family Echo first.

Before asking a question, please check the Frequently Asked Questions page.

CORS Error while using the API through an html/js website

0 votes
86 views

I am getting the error:

Access to fetch at 'https://www.familyecho.com/api/' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I am using the api on a website and trying to put it in an iframe.

asked Aug 19 by billonium4535 (120 points)

1 Answer

0 votes
Are you able to send the request from your server, rather that directly from your website? The Family Echo API doesn't current accept requests directly from web pages.
answered Aug 19 by gidgreen (10,920 points)
...