bregySilvan / TabSolution

2 stars 2 forks source link

No 'Access-Control-Allow-Origin' header in Angular 2 app #22

Closed olinator98 closed 6 years ago

olinator98 commented 6 years ago

@TheScorpio13 When I want to connect me to your server, an error message is displayed in the browser-console. You must define the clients which are able to connect to your server. I've solved this error provisory. Please visit this link: https://stackoverflow.com/questions/36002493/no-access-control-allow-origin-header-in-angular-2-app In my case, it was the localhost which need the access to the server.

Christian-Seematter commented 6 years ago

This is part of security with HTTP, you can open this up to not encounter any issues during development, but document that this needs to be changed for a production environment.