ACE request data from third part API from FE

Hi there,

I am trying to get some third party API data from FE, the only way I found is:

FE:

const res = await fetch(
        'authenticated', {
            mode:"no-cors",
          method: 'GET',
          headers: {'key': `&{key}`,}
        });

    return await res.json();

ACE routes:

app.get('/authenticated', async (req, res) => {
        let l = await authenticated(); // 3rd party API call 
        res.json(l);
    });

Is this only way? Is there a better/faster way?

Thank you

Hi @janambroz ,

My interpretation of your question is that you are wondering if your Connect app iframe always need to integrate with a third party via you app’s backend. If the third party service supports CORS requests, then your app iframe should be able to interact with it directly.

Regards,
Dugald