Configuring CORS for a LabVIEW Web Service
- Updated2023-02-17
- 2 minute(s) read
Configuring CORS for a LabVIEW Web Service
You may need different CORS configurations for each LabVIEW Web Service in your application during development and deployment.
To determine the origin of a web application executing in the development environment, refer to Hosting a Web Application During Development. During development using a LabVIEW Web Service, configure CORS to test your application in the LabVIEW editor.
| Goal | CORS Configuration | Configuration Instructions |
|---|---|---|
| Share your web application resources publicly and receive requests from any
origin. Note This configuration is
the least secure. Any origin could access your web service. |
|
Configure a LabVIEW Web Service CORS for Open Access |
| Allow specific origins you define or well-known origins to access your web application resources that do not require credentials. |
|
Configure a LabVIEW Web Service CORS for Filtered Access |
| Allow specific origins you define or well-known origins to access your web application resources and you want to enable sharing credentials, such as cookies. |
|
Configure a LabVIEW Web Service CORS for Credentialed Access |
Related Information
- Considerations When Accessing Data from Web Services
If you want to create a web application that sends requests to and receives responses from a web service, you need to know the origin of the web service that hosts the web application as well as the origin of the target web service.
- Configure a LabVIEW Web Service CORS for Open Access
Configure CORS to allow any origin access to your WebVI resources.
- Configure a LabVIEW Web Service CORS for Filtered Access
Configure CORS to allow specific origins you define or well-known origins access to your WebVI resources.
- Configure a LabVIEW Web Service CORS for Credentialed Access
Configure CORS to allow specific origins you define, well-known origins, and origins with credentials access to your WebVI resources.