Skip to content

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.

8 participants