I face an issue trying to get data from PI web api using get request in vue component. My request call is pretty simple:
But it gives me an error in OPTIONS preflight request:
Here is my PI Web API configuration for dev environment (so cross-domain requests are acceptable from any origins and all necessary methods are allowed):
When I try to run 'get' request in postman - it is ok, but 'options' request returns message "The requested resource does not support http method 'OPTIONS'."
I think this is what caused an error in my application in 'get' preflight request, so where can I enable OPTIONS method for PI environment?
Or maybe I missing something and key problem somewhere else, so can you guide me in the right direction?