Skip to content

CORS enabled on ping service #3945

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

Open
Orgil opened this issue Aug 13, 2024 · 10 comments
Open

CORS enabled on ping service #3945

Orgil opened this issue Aug 13, 2024 · 10 comments
Assignees
Labels
awaiting-maintainer Block issues from being stale/obsolete/closed good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/feature New features for Agones

Comments

@Orgil
Copy link

Orgil commented Aug 13, 2024

Is your feature request related to a problem? Please describe.
checking ping from browser raises CORS issue.

Describe the solution you'd like
Enable CORS on ping service

@Orgil Orgil added the kind/feature New features for Agones label Aug 13, 2024
Copy link

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

@github-actions github-actions bot added the stale Pending closure unless there is a strong objection. label Dec 15, 2024
@markmandel
Copy link
Collaborator

🤔 on one hand, I'm wondering if we should do this... on the other, it feels like this should maybe be something a proxy or load balancer does? Not sure. 🤔

@github-actions github-actions bot removed the stale Pending closure unless there is a strong objection. label Jan 1, 2025
Copy link

github-actions bot commented Feb 1, 2025

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

@github-actions github-actions bot added the stale Pending closure unless there is a strong objection. label Feb 1, 2025
@Orgil
Copy link
Author

Orgil commented Feb 1, 2025

i my case, to overcome cors issue, i had to put a load balancer just for ping service over every regional cluster.

@markmandel
Copy link
Collaborator

i my case, to overcome cors issue, i had to put a load balancer just for ping service over every regional cluster.

How else where you exposing the ping service, if not without a LB?

@Orgil
Copy link
Author

Orgil commented Feb 2, 2025

i forgot it what exactly happened, but i had to setup extra nginx on top of provider LB to solve cors. Maybe it was issue with cloud provider.

@markmandel markmandel added help wanted We would love help on these issues. Please come help us! good first issue These are great first issues. If you are looking for a place to start, start here! labels Feb 2, 2025
@markmandel
Copy link
Collaborator

Seems like a small fix to implement. Would love a PR.

@github-actions github-actions bot removed the stale Pending closure unless there is a strong objection. label Feb 15, 2025
Copy link

github-actions bot commented Apr 1, 2025

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

@github-actions github-actions bot added the stale Pending closure unless there is a strong objection. label Apr 1, 2025
@gongmax gongmax added the awaiting-maintainer Block issues from being stale/obsolete/closed label Apr 2, 2025
@0xaravindh 0xaravindh removed the stale Pending closure unless there is a strong objection. label Apr 2, 2025
@0xaravindh 0xaravindh self-assigned this Apr 2, 2025
@0xaravindh
Copy link
Member

It seems you're facing a CORS issue when checking the ping service. I didn’t encounter this issue myself.

Checkout this docs: Agones Ping Service HTTP Docs

karavindh@karavindh:~$ k describe service agones-ping-http-service --namespace=agones-system
Name:                     agones-ping-http-service
Namespace:                agones-system
Labels:                   app=agones
                          app.kubernetes.io/managed-by=Helm
                          chart=agones-1.48.0-dev
                          component=ping
                          heritage=Helm
                          release=agones
Annotations:              cloud.google.com/neg: {"ingress":true}
                          meta.helm.sh/release-name: agones
                          meta.helm.sh/release-namespace: agones-system
Selector:                 agones.dev/role=ping
Type:                     LoadBalancer
IP Family Policy:         SingleStack
IP Families:              IPv4
IP:                       34.118.239.126
IPs:                      34.118.239.126
LoadBalancer Ingress:     34.168.182.8 (VIP)
Port:                     http  80/TCP
TargetPort:               8080/TCP
NodePort:                 http  32741/TCP
Endpoints:                10.64.11.244:8080,10.64.6.64:8080
Session Affinity:         None
External Traffic Policy:  Cluster
Internal Traffic Policy:  Cluster
Events:
  Type    Reason                Age    From                Message
  ----    ------                ----   ----                -------
  Normal  EnsuringLoadBalancer  5m22s  service-controller  Ensuring load balancer
  Normal  EnsuredLoadBalancer   4m35s  service-controller  Ensured load balancer

karavindh@karavindh:~$ curl http://34.168.182.8:80; echo
ok
karavindh@karavindh:~$ 

@Orgil Could you please provide more details about the error you're facing?

@Orgil
Copy link
Author

Orgil commented Apr 12, 2025

@0xaravindh as i remember, issue was related with browser, i called ping service from the browser. Browser requires SSL, so i had to setup load balancer as reverse proxy for terminating ssl. Issue rise if you put ping service behind reverse proxy, i guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Block issues from being stale/obsolete/closed good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/feature New features for Agones
Projects
None yet
Development

No branches or pull requests

4 participants