Navigation Menu

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

Now you can make new Access-Control-Allow-Origin header value #235

Closed
wants to merge 2 commits into from

Conversation

firej
Copy link

@firej firej commented Dec 21, 2017

Now you can make new Access-Control-Allow-Origin header value, based on origin with custom rules.
Usage example:

sockjs.createServer({
    custom_cors: (origin) => {
        if (origin && example_service_re.test(origin)) {
            return origin;
        }
        return 'https://www.example.com';
    }
});

@brycekahle brycekahle closed this Nov 19, 2019
@firej
Copy link
Author

firej commented Nov 19, 2019

🤦‍♂️

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.

None yet

2 participants