Handling CORS preflight requests

Hello @ravelysid, check out this example I made for you:

I tested the deployed URL from my example with the fetch request you posted above and it worked fine.