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

How to enable CORS for specific endpoints #854

Open
zenrubrik opened this issue Sep 29, 2023 · 0 comments
Open

How to enable CORS for specific endpoints #854

zenrubrik opened this issue Sep 29, 2023 · 0 comments

Comments

@zenrubrik
Copy link

zenrubrik commented Sep 29, 2023

Currently i have something like this in openapi.yml.j2

swagger: "2.0"
info:
  ...
host: {{ deployment_name }}.endpoints.{{ gcloud_project }}.cloud.goog
x-google-endpoints:
- name: {{ deployment_name }}.endpoints.{{ gcloud_project }}.cloud.goog
  allowCors: True
basePath: /
x-google-management:
...
paths:
  /foo
  
  /bar

this enables cors for all the paths. is there a way for me to only allow cors for foo but not the rest of endpoints?

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