Hi, I am trying to use my own interface for login ...
# ory-network
p
Hi, I am trying to use my own interface for login and signup which is in Flutter instead of ORY kratos UI using ORY cloud. I used ORY cloud public URL as backend url in my code. When it renders my flutter UI for login and signup, Following issues occurred: 1. Login and Signup functionality does not work. 2. This give the following error:
REDIRECT ON SOFT ERROR -- XMLHttpRequest error.
Access to XMLHttpRequest at '<https://ory_public_url>' from origin '<http://localhost:39431>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Note: Flutter app is running on local host.
h
Flutter Web?
p
Yes, it is flutter web
h
p
I have changed the login and signup urls on ORY cloud for this repo https://github.com/IGLU-Agency/iglu-ory-kratos-example
@high-optician-2097 I have followed the URL you mentioned but it does not help me.
m
Hello @plain-jelly-63649, the IGLU example is currently not mainained by us, so we have not tested it with Ory Cloud yet. I will speak to the author and see to add it to ory/examples asap - then we can test it and so on. For the time being I recommend the tutorial that hackerman posted, does that tutorial miss some things you were looking for or what did it not help you?
p
@magnificent-energy-493 I have try that url code that is working, but That renders the login UI of ORY Kratos but I want to use my own flutter Login UI.
I could not find any official documentation of flutter, I found example of other framework like react.js, next.js but not flutter.
m
Hey Ali, that is right we don’t have an official out-of-the-box tutorial for Flutter Custom UI yet. Will see to get that on the way 💪 Also check out this flutter tutorial, that might help as well: https://www.ory.sh/cloud-ecommerce-frontend/
p
Thanks I looked into this already. I will continue to explore on it further. For now can you tell me if setting up CORS is possible on ORY cloud.
h
Yes it is, CORS support is first-class supported in the Ory Tunnel, and we will also add it to the Ory Proxy today!
p
ok Thanks a lot for your time and helping me.
h
just forgot to merge this ^^
release is triggered, will be available as ory cli 0.1.35 in ~45 minutes
p
ok Thanks again. I will follow up this.
🙏 1
h
It’s released 🙂
p
Thanks I will look up into this.☺️