Skip to content

Conversation

@SparoHawk
Copy link

No description provided.

SparoHawk and others added 3 commits May 9, 2018 11:26
Change "getServerName" to "getHttpHost" in order to get the full domain of the request.
Fix method to get the request domain
@dmkit
Copy link
Owner

dmkit commented May 9, 2018

Hi @SparoHawk thanks for helping us out. I just have a question, why would you want to ignore a domain? Are you running a single instance of phalcon api in multi domains?

@SparoHawk
Copy link
Author

@dmkit Thanks for asking. We have an API being consumed by several clients, some of which need access without a JWT token. We are white listing domains consuming the API, not where the API is being hosted.

@dmkit
Copy link
Owner

dmkit commented May 16, 2018

@SparoHawk oh I see. Could you please add a unit test please?

@SparoHawk
Copy link
Author

@dmkit Will do.

@kaioken
Copy link
Contributor

kaioken commented Nov 26, 2018

@SparoHawk remember we need to add unit test

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.

4 participants