This will end up like below in the appsettings json file
Hi Krishna,
Thanks for getting in touch! I suspect you’re attempting to substitute in an array into a JSON file where the Settings:AllowOrigins object is already defined as a string. Is that correct (i.e. prior to substitution, this line looks like "AllowOrigins": "Something Here"
)?
Octopus will replace this variable value into an existing JSON array, so you’d have to define it as an array before substituting. If that previously mentioned line looked instead like "AllowOrigins": ["Something Here"]
before the JSON Configuration Variables kicks in, that should give you the following result:
"AllowOrigins": [
"https://devmiis03:44327"
]
I hope this helps get you going! Don’t hesitate to reach out if there’s anything else we can help with.
Best regards,
Kenny
Thanks Kenneth
Reoslved
Hi Krishna,
Thanks for letting me know! That’s great to hear, and you’re very welcome.
Don’t hesitate to reach out if you have any questions or concerns in the future.
Best regards,
Kenny
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.