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

digitalocean_spaces_bucket_cors_configuration: Does not allow to order CORS rules #1138

Open
joaomnmoreira opened this issue Apr 12, 2024 · 0 comments
Labels

Comments

@joaomnmoreira
Copy link

Resource does not respect rules order, nor does have an order argument:

cors_rule {
allowed_headers = [""]
allowed_methods = ["GET"]
allowed_origins = ["
"]
max_age_seconds = 3000
}

cors_rule {
allowed_headers = ["*"]
allowed_methods = ["PUT", "POST", "DELETE"]
allowed_origins = ["https://${digitalocean_record.project-dns-ipv4-app1.fqdn}"]
max_age_seconds = 3000
}

In DO UI GET was second in the list and assets were issuing CORS error. After manually changing order everything was ok.

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

No branches or pull requests

1 participant