HNHacker News
TopNewBestAskShowJobs

awzurn

4 karma · joined September 7, 2016

submissionscomments
awzurn··on Swift 3.0 Released
Can't wait for the day when they're done deciding to only make major releases every year, and actually settle on a common syntax and platform for the language, will be great not having to worry about my source code blowing up...

... then again, seeing some actual refactor support in Xcode would be pretty great too, but you can't wish for too much at once.

awzurn··on JWT Authentication Tutorial: Example Using Spring Boot
It's pretty hard/near impossible to return a file via an XHR/AJAX response. Traditionally a web-browser would just open the URL to which the file would be downloaded from, which makes JWT authentication tricky as you can't pass custom headers on this type of request (and thus your request can't be authenticated/trusted).

Our workaround for this was to have our filter also look the JWT in a query parameter on the URL.