Skip to main content
Nintex Community Menu Bar

SmartObject REST services endpoints do not support CORS

  • February 16, 2021
  • 0 replies
  • 73 views
  • Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 667 replies
 

SmartObject REST services endpoints do not support CORS

kbt145221

PRODUCT
K2 blackpearl 4.7
BASED ON
K2 blackpearl 4.7
SEE ALSO
 
TAGS
K2 API
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

This occurs when you need to set up cross domain requests and parameter Access-Control-Allow-Origin on the K2 server side for queries to REST endpoints in K2 4.7.

Symptoms

After changing the enableCrossDomainPolicy setting in the configuration file to "Enable", you keep getting the following error message in the web browser:

"No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access."

Resolution

CORS settings for the SmartObject REST services are not supported.

 

The reason for this is that the REST service is hosted in the host server instead of IIS, which means there is no web.config file to configure CORS settings.

 

There is an existing feature request to implement this option.  This functionality is only available in K2 Cloud. With K2 Five you can use OData services as an alternative.

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings