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

Bug when adding Origin to CORS plugin #14110

Open
1 task done
K-Diger opened this issue Jan 8, 2025 · 3 comments
Open
1 task done

Bug when adding Origin to CORS plugin #14110

K-Diger opened this issue Jan 8, 2025 · 3 comments
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...

Comments

@K-Diger
Copy link

K-Diger commented Jan 8, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

3.8.0

Current Behavior

Adding an allow entry for a new origin to a gateway service using the CORS plugin does not work properly.

If I added an Origin called "http://my-tet-domain.com" to the Origin whitelist inside the CORS Plugin, CORS for this Origin should resolve normally for all requests.

However, CORS error are occurring quite frequently, and CORS permission settings are being passed intermittently.

This phenomenon of irregular plugin application needs to be resolved.

The environment in which I use Kong Gateway is Rocky Linux, and there are no problems related to the Upstream Server or Route path.

Also, I manage this configuration information in DB Mode using PostgreSQL.

Expected Behavior

If you add origins to be allowed in the CORS Plugin, all origins should pass normally.

Failure/success should not occur irregularly like in my case.

Steps To Reproduce

  1. Define Gateway Service, Routes, and Upstreams and apply CORS Plugin to the relevant settings.

  2. Register a new origin in CORS Plugin.

  3. Send a request to the Kong Gateway from the new registered Origin.

Anything else?

No response

@xianghai2
Copy link

Rocky Linux is not a distribution with offical support from Kong.
Refer to https://docs.konghq.com/gateway/latest/install/

@K-Diger
Copy link
Author

K-Diger commented Jan 9, 2025

Rocky Linux is not a distribution with offical support from Kong. Refer to https://docs.konghq.com/gateway/latest/install/

Kong is running as a Docker container, but is the problem still related to the OS?

@samugi
Copy link
Member

samugi commented Feb 10, 2025

Hi @K-Diger, to help us reproduce this issue and investigate the problem, could you share your Kong configuration where the behavior is reproduced, as a deck file? Thank you very much.

@samugi samugi added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...
Projects
None yet
Development

No branches or pull requests

3 participants