oracle / oraclesolaris-contrib

oraclesolaris-contrib is a repository focussed on the Oracle Solaris 11.4 StatsStore, using methodologies like REST to connect to Oracle Solaris 11.4 and the new features being introduced in Oracle Solaris 11.4 OS.
https://www.oracle.com/solaris/solaris11/
Other
47 stars 15 forks source link

CORS support #2

Open guillermomolina opened 3 years ago

guillermomolina commented 3 years ago

Hello, does the rest API have CORS support?

tehe commented 3 years ago

Hello Guillermo,

the REST API current does not (is not configured with) CORS support. Would you please be so kind as to explain your use-case and what level of support would it require? E.g. would Access-Control-Allow-Origin be sufficient (this option is doable rather easily), or would you require the preflight support through the OPTIONS method too (that would be rather more involved)?

Please let me know.

Thanks, Tomas

PS: I work for Oracle and am the owner of the Solaris Remote Administration Daemon (which is what the REST APIs are built on).

guillermomolina commented 3 years ago

Hello Tomas, thanks for answering I thin that basic CORS support is better than no CORS support. I am developing an Admin WEB GUI. The only way of accessing from a web client (the browser) to a foreign REST endpoint is via CORS. Full CORS support may be needed anyway for other use cases. Right now i am using a masking proxy.

Thanks, Guillermo

tehe commented 3 years ago

Thanks for getting back to me this quickly. I've filed an RFE to import a rudimentary CORS support directly in the REST API server and will investigate what level of CORS support is feasible to implement in foreseeable future.

Just out of curiosity - what Solaris version are you using?

I'll keep you posted.

Thanks, Tomas

guillermomolina commented 3 years ago

Hello Tomas, We have more than 200 zones, 40% Solaris 10, 60% Solaris 11.4 with various SRUs up to the latest

Thanks, Guillermo