-
Hi dear BB dev team, we are trying to address the Budibase CRUD API in Angular. Unfortunately without success so far, although we use three different REST Client implementations. TypeScript REST Client #1: TypeScript REST Client #2: TypeScript REST Client #3: The error messages are the same in all three cases: However, with the Postman tool and the same header information as the three previously listed REST TypeScript client implementations, a successful request is possible. So what are we doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @dpedwards If I understand this correctly, we would need to send back the mentioned header: 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? |
Beta Was this translation helpful? Give feedback.
-
Hii @dpedwards If you're using Typescript and facing a CORS error in production means, just write the ORIGIN as usual in your code. Before pushing your code to production, don't forget to run the build command, Sample code of mine,
|
Beta Was this translation helpful? Give feedback.
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?