Package | Description |
---|---|
com.azure.search.documents.models |
Package containing the data models for SearchServiceRestClient.
|
Modifier and Type | Method and Description |
---|---|
CorsOptions |
Index.getCorsOptions()
Get the corsOptions property: Options to control Cross-Origin Resource
Sharing (CORS) for the index.
|
CorsOptions |
CorsOptions.setAllowedOrigins(String... allowedOrigins)
Set the allowedOrigins property: The list of origins from which
JavaScript code will be granted access to your index.
|
CorsOptions |
CorsOptions.setMaxAgeInSeconds(Long maxAgeInSeconds)
Set the maxAgeInSeconds property: The duration for which browsers should
cache CORS preflight responses.
|
Modifier and Type | Method and Description |
---|---|
Index |
Index.setCorsOptions(CorsOptions corsOptions)
Set the corsOptions property: Options to control Cross-Origin Resource
Sharing (CORS) for the index.
|
Copyright © 2020 Microsoft Corporation. All rights reserved.