🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

CORS Request Issues from an iOS Capacitor App

5 replies
Last updated: Mar 18, 2021
I have a problem allowing CORS requests from an iOS capacitor app: capacitor runs under
, but the CORS origin form won't let me enter that 🌩️
Mar 18, 2021, 6:37 AM
user A
can you pass that to the devs?The request origin is not configurable with capacitor under iOS:
I also tried entering
and other variants, but the sanity UI won't let me enter that...
Mar 18, 2021, 3:45 PM
Interesting. I’m able to enter
in my studio manager.
Mar 18, 2021, 4:02 PM
Ooh. Only on the old version, though. It doesn’t let me on the new one.
Mar 18, 2021, 4:04 PM
You could also try
sanity cors add <capacitor://localhost> --no-credentials
) from your command line.
Mar 18, 2021, 4:05 PM
That worked, thanks a lot! 🙏
Mar 18, 2021, 10:12 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?