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

Set up multiple Access-Control-Allow-Origin domains via route rules #2919

Open
1 task done
gxres042 opened this issue Dec 4, 2024 · 4 comments
Open
1 task done

Comments

@gxres042
Copy link
Member

gxres042 commented Dec 4, 2024

Describe the feature

In some environments it is necessary to configure multiple Access-Control-Allow-Origins, which is not supported by routeRules at this time. Perhaps we can add one.

Additional information

  • Would you be willing to help implement this feature?
@pi0
Copy link
Member

pi0 commented Dec 4, 2024

Can you please add little more details also? 🙏🏼 (envs that you tested and failing + current config)

@gxres042
Copy link
Member Author

gxres042 commented Dec 4, 2024

ummm actually I'm working on a new project. This project's full routing requires multiple Access-Control-Allow-Origins domains to be set, but there doesn't seem to be a good way to do this in Nitro yet?

@pi0
Copy link
Member

pi0 commented Dec 4, 2024

It is possible using h3 utils, not route rules AFAIK (unless we manually merged them via , )

@gxres042
Copy link
Member Author

gxres042 commented Dec 4, 2024

Perhaps we need to improve the documentation on CORS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants