You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a fetch request to MARTA's RESTFUL webservice, but couldn't use the data that is returned from the server as there is no 'Access-Control-Allow-Origin' field in the response header.
After a quick research I figured that the response header should look something like the following in order to make use of the API with requests originating from browsers (client-side). MDN link
Access-Control-Allow-Origin: *
Can anyone advice on this?
Thanks
The text was updated successfully, but these errors were encountered:
I'm trying to make a fetch request to MARTA's RESTFUL webservice, but couldn't use the data that is returned from the server as there is no 'Access-Control-Allow-Origin' field in the response header.
After a quick research I figured that the response header should look something like the following in order to make use of the API with requests originating from browsers (client-side). MDN link
Can anyone advice on this?
Thanks
The text was updated successfully, but these errors were encountered: