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

Allowed origins #79

Open
ShulV opened this issue Feb 4, 2024 · 0 comments
Open

Allowed origins #79

ShulV opened this issue Feb 4, 2024 · 0 comments

Comments

@ShulV
Copy link

ShulV commented Feb 4, 2024

Didn't work for me without additional permission.
I launched the front using "Live Server" in VS Code on 5500 port.
I had to add the line .setAllowedOrigins("http://127.0.0.1:5500/") to make it work.

@Override
	public void registerStompEndpoints(StompEndpointRegistry registry) {
		registry.addEndpoint("/gs-guide-websocket")
				.setAllowedOrigins("http://127.0.0.1:5500/");//I added it
	}
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

1 participant