Skip to content

"Cross-Origin Request Blocked" by sending request from TypeScript REST Client(s) in Angular #6051

Closed Answered by melohagan
dpedwards asked this question in Help
Discussion options

You must be logged in to vote

Hi @dpedwards

If I understand this correctly, we would need to send back the mentioned header: Access-Control-Allow-Origin in the API response.

However, from this StackOverflow post, it does look like you can use a proxy through the angular-cli to get around this: https://stackoverflow.com/questions/50237881/angular-cors-request-blocked

Out of curiosity, does this issue persist across different web browsers?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@dpedwards
Comment options

@dpedwards
Comment options

@dpedwards
Comment options

Answer selected by dpedwards
Comment options

You must be logged in to vote
1 reply
@dpedwards
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants