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 attempting to consume the api using angular here. Here is my html. Below that is the error I'm seeing in the console. Do we need to add headers for CORS on the server side? Am I overlooking something?
XMLHttpRequest cannot load https://derby-pie-politics.herokuapp.com/legislator/40. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://shaneashford.com' is therefore not allowed access.
The text was updated successfully, but these errors were encountered:
I'm attempting to consume the api using angular here. Here is my html. Below that is the error I'm seeing in the console. Do we need to add headers for CORS on the server side? Am I overlooking something?
HTML
Console
XMLHttpRequest cannot load https://derby-pie-politics.herokuapp.com/legislator/40. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://shaneashford.com' is therefore not allowed access.
The text was updated successfully, but these errors were encountered: