422 Unprocessable Entity

hess
Community Explorer

I am in the process of building an app (Angular with a .Net Core backend) to embed into a Canvas page. I am working on the beginning stages and trying to get basic http communication working. I created a simple get call to grab the front page. I pulled the endpoint url from the Canvas Live API tool. I am using the regular Angular HTTP client that uses rxjs observables. I have tried a myriad of custom headers to ensure the call is handled. They have all returned the pre-flight with 422 Unprocessable Entity. What stumps me is when I put the endpoint into Postman, it works great. Aditionally, I am receiving CORS errors, which I do not understand because I am passing the token in the header authorization that I created in my profile. Any tips/advice would be appreciated.

0 Likes