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

How to set specific origin? #4

Open
hopewise opened this issue Mar 16, 2016 · 2 comments
Open

How to set specific origin? #4

hopewise opened this issue Mar 16, 2016 · 2 comments

Comments

@hopewise
Copy link

I've installed the package, but how would I use it to accept access from specific domains?

@puneetthakur66
Copy link

@hopewise I know it is late, just writing this so that it could help someone else.
You can add this in the settings array

protected $settings = array(
'origin' => 'https://particulardomain.com // Wide Open!
'allowMethods' => 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS',
);

@danielperaza
Copy link

I don't think this is a good solution, since if you install the package via composer, you would need to modify the original package's contents and those changes can be later lost, if you delete your vendors folder, which should not be under version control.

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

No branches or pull requests

3 participants