ronzeidman / ng2-ui-auth

an angular2 repository for authentication based on angular1's satellizer
MIT License
206 stars 64 forks source link

Twitter redirection not working #144

Closed epot closed 5 years ago

epot commented 6 years ago

I am trying to use this library with Play! Silhouette on the server side. The issue is that the oauth1 flow is responding a redirect to the ng2-ui-auth library, which is then failing because "No 'Access-Control-Allow-Origin' header is present on the requested resource". I am not sure if the issues lies on the server or client side, but the same server side code is working fine with Satellizer (which apparently is building the Twitter popup url fully on the client side, with no call to the server). Do you have an idea how I could make this work?

epot commented 6 years ago

I can tune the server behavior to send a 200 instead, but I wonder if that is the standard behavior.

ronzeidman commented 6 years ago

Seems like a CORS configuration issue. Look here, maybe it can help: https://www.playframework.com/documentation/2.6.x/CorsFilter

ronzeidman commented 5 years ago

Closed due to inactivity