I'm building an embed that needs access to a sveltkit endpoint from any origin.
If I was using express I would simply use the cors
middleware.
I'm curious if there is a way to enable CORS on sveltkit endpoints so I don't need to spin up another service.
Some things I've tried so far:
Returning 'Access-Control-Allow-Origin': '*' from the get handle in the endpoint
Overriding the OPTIONS http method (never seems to get called)
I saw this reddit post but it seems outdated.