Azure / Azure/static-web-apps

nextLink does not obey https protocol with data api

Open
#1,327 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

We are using Data API and the `nextLink` given back in the get queries does not obey the https protocol. Locally this works fine because it's plaintext, but in the cloud, it's broken and you need logic to replace this out.

A clear and concise description of what the bug is.

**To Reproduce**

1. Have Data API working in your project.
2. Release the code up, connecting database to your environment.
3. Query a table with 100+ rows.

The `nextLink` does not honor the `Referrer` header and sends back mixed-content.

**Expected behavior**

The `nextLink` should honor the `Referrer` header.

**Screenshots**

![image](https://github.com/Azure/static-web-apps/assets/229083/c78c632e-de23-4743-b4e1-863214ce2db7)
![image](https://github.com/Azure/static-web-apps/assets/229083/adf0e46e-a58a-44f5-abd3-fcd8c0936a5d)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.