Title: Cross-Origin Resource Sharing Errors
Last modified: August 21, 2016

---

# Cross-Origin Resource Sharing Errors

 *  Resolved [marpa](https://wordpress.org/support/users/marpa/)
 * (@marpa)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cross-origin-resource-sharing-errors/)
 * I cannot get this plugin to work in an instance of WordPress multisite that uses
   SSL for login and admin pages as specified in the wp-config.php file:
    define(‘
   FORCE_SSL_LOGIN’, true ); define( ‘FORCE_SSL_ADMIN’, true );
 * When FORCE_SSL_ADMIN and FORCE_SSL_LOGIN are set to true, no dropdown is triggered
   and we get the following error:
    The ‘Access-Control-Allow-Origin’ header contains
   multiple values ‘[http://domain.com](http://domain.com), [https://domain.com&#8217](https://domain.com&#8217);,
   but only one is allowed
 * When FORCE_SSL_ADMIN is set to false the plugin works fine.
 * I think we may need to enable Cross-Origin Resource Sharing (CORS) on our site,
   but not certain. If CORS is needed, not sure how to implement in WordPress…
 * [https://wordpress.org/plugins/search-autocomplete/](https://wordpress.org/plugins/search-autocomplete/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [marpa](https://wordpress.org/support/users/marpa/)
 * (@marpa)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cross-origin-resource-sharing-errors/#post-4783617)
 * This has been resolved. Was an issue with our .htaccess file

Viewing 1 replies (of 1 total)

The topic ‘Cross-Origin Resource Sharing Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/search-autocomplete_f8fbfd.svg)
 * [SearchAutocomplete](https://wordpress.org/plugins/search-autocomplete/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-autocomplete/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-autocomplete/)
 * [Active Topics](https://wordpress.org/support/plugin/search-autocomplete/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-autocomplete/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-autocomplete/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [marpa](https://wordpress.org/support/users/marpa/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/cross-origin-resource-sharing-errors/#post-4783617)
 * Status: resolved