3 ms·
When I started going down the whole CORS rabbit hole a very simple solution came to me almost immediately via googling. Xdomain. It is simple, it doesn't do pre
by 3pt14159 11y ago
When I started going down the whole CORS rabbit hole a very simple solution came to me almost immediately via googling. Xdomain. It is simple, it doesn't do preflight checks, it's secure. The only silly edgecases are where other people have already worked around CORS awfulness for their client libraries (MixPanel, FB SDK, Intercom).
- Benjamin_Dobell 11y agoThanks for pointing XDomain out to me. XDomain certainly feels like a hack, but if you've done any serious work with CORS you'll probably realise CORS itself is just hacks upon hacks. Project Link: https://github.com/jpillora/xdomain https://github.com/jpillora/xdomain