Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@abetwothree
Copy link
Contributor

@abetwothree abetwothree commented Sep 6, 2017

Added a fix to allow AJAX calls to ping the API from either same domain different port, or totally different domain. CORS settings are set from laravel-echo-server.json file. Ran into a situation where I needed this and fixed it manually but that's not a long term fix, so I decided to make a fork and pull request with this feature.

Thank you for looking into and hopefully integrating it with the system.

Thanks!

Abraham and others added 3 commits September 6, 2017 17:09
…d by ajax calls from Javascript. Cors settings are set from laravel-echo-server.json file. Ran into a situation where I need this and fixed it manually but that's not a long term fix.
Changed amount of options passed to only be CORS settings so that keys are not passed to public API and prevent access to them from it.
Change to only send CORS settings to API class to avoid sending keys to public facing interface and avoid exploits of them.
@abetwothree abetwothree changed the title Allowing CORS headers to be set for the API. Define Cross Domain Allow headers to be set for the API Sep 6, 2017
The explanation of how to use the CORS settings in laravel-echo-server.json file.
@abetwothree abetwothree mentioned this pull request Sep 6, 2017
@abetwothree abetwothree changed the title Define Cross Domain Allow headers to be set for the API Define Cross Domain Allow Headers To Be Set For The API Sep 7, 2017
@tlaverdure tlaverdure added this to the 1.3.2 milestone Sep 7, 2017
@abetwothree
Copy link
Contributor Author

Hi @tlaverdure
Just wondering if you have any idea when you might be able to merge this pull request.

I wrote up some features in my Laravel app that uses this feature and I've been manually adding this to my install of the echo server but my teammates are now needing this too.

No rush cause I know we all got personal lives and this is free project you work on your free time. Just wanted to get an idea and if I can be of any help let me know for sure!

Thanks!

@dhavyd
Copy link

dhavyd commented Oct 12, 2017

Hi guys! I'm also working with an SPA there I really need this pull request :-) Thank you for the great job in this project!

@okaufmann
Copy link

As it seems, this repo is not very active anymore... there is a fork I'm currently using:https://github.com/dantecoding/laravel-echo-server

You can clone, rename the package in package.json, npm publish it and install it as long, as this repo doesn't get any more love...

@dhavyd
Copy link

dhavyd commented Oct 12, 2017

Oh, thanks!

@tlaverdure
Copy link
Owner

I will be reviewing this soon. Sorry for the delay.

@jonnywilliamson
Copy link
Contributor

@okaufmann a little harsh! @tlaverdure does a great job with echo server.

Having multiple forks around the place isn't all that helpful IMHO.

@okaufmann
Copy link

Of course too fussy @jonnywilliamson your right, I didn't want to deny the good work in any way.

@abetwothree
Copy link
Contributor Author

I also think @tlaverdure did and does a great job with this project. Though I must admit, this feature seems to have good public demand 😄

@tlaverdure tlaverdure merged commit ed8e3cb into tlaverdure:master Oct 12, 2017
@tlaverdure
Copy link
Owner

Published at 1.3.2. Thanks for your patience.

@dhavyd
Copy link

dhavyd commented Oct 12, 2017

@tlaverdure Thank you very much for the good work with this project. Amazing!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants