I’m currently developing an App that talks to the 10to8 calendar booking service. I’d initially tested what I needed to do using https://reqbin.com/ and all was good and the 10to8 API worked just as expected.
I then replicated the same calls/headers etc in Appgyver but when testing it was returning an error “Error: TypeError: Failed to fetch. Does the server allow CORS?”.
That wasn’t that helpful so I used the dev tools in Chrome to view the console and actual message which was “‘https://platform.appgyver.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: The ‘Access-Control-Allow-Origin’ header contains multiple values ‘.10to8.com, 10to8.com’, but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.”
Obviously, I can’t do anything about the 10to8 server myself (and there aren’t any config settings on that account for me to change) so any ideas? Is it possible for me to set the request mode to ‘no-cors’ as suggested and if so how?