Configuring CORS for a LabVIEW Web Service
- Updated2024-05-31
- 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. |
|
Refer to 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. |
|
Refer to 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. |
|
Refer to Configure a LabVIEW Web Service CORS for Credentialed Access. |
Related Information
- 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.
- NI Web Server Manual
- Hosting a Web Application During Development
Host WebVIs running in the G Web Development Software editor with NI Web Server or the G Web Development Software embedded web server.