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

Feature ignore domain #16

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

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