Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to override protocol #48

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

Conversation

monty0157
Copy link

The module currently cleverly uses the value of req.secure to determine whether to use http or https for the OData records. However, if your OData service is running behind a loadbalancer that terminates TLS, then http will always be used. You therefore currently have to have port 80 open to use the OData service in Excel or Power BI, which is not allowed in certain companies for security reasons.

This PR therefore adds the ability to override the protocol by passing in the value of the protocol when creating the server, thus allowing the OData records to be served with https, even if TLS was previously terminated.

I hope the extra protocol options doesn't break the structure of your code. If you want to have this fix done differently to be able to merge it, then let me know or feel free to change the code.

@mayrbenjamin92
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants