Okta Pagination AWS Flask

Hi!

I have a Flask app, making API call to Okta listing all active apps, using pagination. On my local machine running localhost, it works fine, I’m able to retrieve 30 pages worth of data.

But when my app is running on AWS (Ubuntu 18.04.4), the initial GET call, the Link header contains the ‘next’ link is empty in the response. In Chrome Dev Tool, I can see for my local machine, in Headers, ‘sec-fetch-site: same-origin’, in AWS this header is missing.

Does anyone know why this is the case? Any help is appreciated, thank you!

Hello,
Are you able to post the function? I am having a similar error using python requests library.

Thanks.