haxwell / quizki

A question and answer database that generates exams.
http://www.quizki.com
GNU General Public License v2.0
4 stars 14 forks source link

added header to allow CORS access for any domain to Auto Authenticati… #236

Closed jdisser closed 6 years ago

jdisser commented 6 years ago

…on filter

Checking the Response with Postman I can see the new header is present when requesting a login. So this code is working. (and doesn't seem to have broken anything else)

Still problems on the angular end. I think that the "originallyRequestedPage" referenced on line 117 of LoginServlet.java is probably null since I'm not accessing this in the normal flow.

I get this new error...

The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Which I think means that Quizki is not returning anything with the Response. I suppose I could try a dummy call from the front end to the profile page and then throw it away??? or put some code in Quizki to return the profile page in the event "originallyRequestedPage" property in the session is null??? What do you think? (I might get some question Id's this way)

jdisser commented 6 years ago

Looks like I started this pull request a while ago. This is synced with the version I used to get the frontend working.