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

CORS settings for App Service #2848

Closed
tomasaschan opened this issue Feb 7, 2019 · 7 comments · Fixed by #2870
Closed

CORS settings for App Service #2848

tomasaschan opened this issue Feb 7, 2019 · 7 comments · Fixed by #2870

Comments

@tomasaschan
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

The azurerm_app_service object does currently not support editing CORS settings, and I can't find any issues that cover this. Are there any plans to implement this that have not been logged yet? If not, I might take a stab at implementing it (the SDK has support for it, so it should be pretty straightforward).

New or Affected Resource(s)

  • azurerm_app_service (both resource and data source)

Potential Terraform Configuration

I imagine something like this:

resource "azurerm_app_service" {
  # name, resource_group etc

  cors = {
    allowed_origins     = ["http://foo.bar", "http://baz"] # default empty
    support_credentials = true                             # default false
  }
}    

References

@joakimhew
Copy link
Contributor

joakimhew commented Feb 11, 2019

@tomasaschan Unfortunately Microsoft does not support setting the support_credentials property through their SDK as of now. There is however support for allowed_origins, so I might look into this in the upcoming days and add a PR for that!

@katbyte Should we perhaps move support_credentials into a new issue and label it with upstream-microsoft?

@tombuildsstuff
Copy link
Contributor

@joakimhew

@katbyte Should we perhaps move support_credentials into a new issue and label it with upstream-microsoft?

As that's missing from the SDK (and thus the Azure API Specs) I'd suggest opening an issue about the support_credentials flag on this repository so that that can be added, rather than tracking that here (at least until it's available)?

@tomasaschan
Copy link
Contributor Author

@joakimhew @tombuildsstuff Are you sure it's missing? I haven't looked that closely, but there's at least a reference to it in services\web\mgmt\2018-02-01\web\models.go (line 6898) in the SDK that indicates it knows about it.

@joakimhew
Copy link
Contributor

joakimhew commented Feb 12, 2019

@tomasaschan Hmm you're right, it seems to be there. It was added 26 days ago though so might explain why we don't have it in the SDK referenced in the provider yet:

models #L6894

@tombuildsstuff Since it was added quite recently to the SDK, I'm supposing it would be available here too soon, right?

Edit:

Here's the specific commit that added SupportCredentials:
3e1219644c98904f5d7328f9a608bd35cb412b04

It was realsed in 25.1.0

We are currently using 24.0.0

@tombuildsstuff
Copy link
Contributor

@joakimhew @tomasaschan good spot - we can look to upgrade the Azure SDK to v25.1.0 in v1.23.0 of the Provider :)

@tombuildsstuff
Copy link
Contributor

PR for upgrading the Azure SDK: #2886

@ghost
Copy link

ghost commented Apr 29, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants