garettB / shopify-flask-example

A simple Shopify app created using Flask and Python
Other
231 stars 66 forks source link

flask.redirect and flask.url_for refusing to connect. #7

Open argoapps opened 3 years ago

argoapps commented 3 years ago

Thanks so much for your work making the core infrastructure for a Shopify app @garettB, really appreciate it. Also, thanks to @Paulinakhew for the recent updates. I have a fully working app thanks to you, but I struggling with redirects and url_for because of the embedded apps iframe. Any idea on what needs to be done as I am getting connection refusals anytime I use flask.redirect to go to the confirmation_url for Shopify to verify a charge or flask.url_for to another app.route.

Please can you give me a hint as to what I need to do, I really am lost? Is it something I need to add to the helpers.py similar to the verify_web_call?

argoapps commented 3 years ago

Is it possible to render the flask.redirect outside the iframe as I think it is attempting to open it within the iframe which is causing the issue?