Calling an API from the front end

EliaBrainDead
New Member
1 0 0

Hello,

We need to create a cinema page on our Shopify store. In order to do so, I would need to pull data from the API of our trusted ticketing partner, Filmbot. I’m currently having two issues:

  1. I see a cors error when I try to make an “unsecure” api call from the front end (I cannot specify headers nor secure my calls as I have no access to the shopify backend)
  2. the data that would come back is not manageable on the front end in liquid so I would need to figure out a way to pupulate our structural HTML in javascript.

Is there any way to pull the data via the Shopify server by creating a private or public app? Being able to send data back and forth and manage it in liquid?

thank you

0 Likes