Can a wildcard be added to the `Access-Control-Allow-Origin` response header?
This way we can use the API from the client side of the browser. Otherwise this error is encountered:
Access to fetch at 'https://wall.alphacoders.com/api2.0/get.php?auth=APIKEYHERE&method=search&term=sunny' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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.
By scottcanoni 3 years ago