Title: OPTIONS Request Method Unauthorized 401
Last modified: August 28, 2020

---

# OPTIONS Request Method Unauthorized 401

 *  Resolved [sinho0689](https://wordpress.org/support/users/sinho0689/)
 * (@sinho0689)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/options-request-method-unauthorized-401/)
 * After installing and activating the cors extension in the chrome browser, restapi
   is being authenticated using the apikey method.
    However, in the browser, when
   the get method is called, the options method is automatically called. But 401
   unauthorized processing in the options request. On the other hand, it works fine
   with using curl.
 * Why can’t authentication process in options request?
 * this is my .htaccess file
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteCond %{HTTP:Authorization} ^(.*)
       RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
   
       RewriteCond %{REQUEST_METHOD} OPTIONS
       RewriteRule ^(.*)$ $1 [R=200,L]
   
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
   
       </IfModule>
       ```
   
 * Even when I disable this plugin
    An options request also occurs, but it works.
   I have all the cors settings done.
 * My guess is that this plugin is not able to process authentication on options
   request.
 * How to fix it? my .htaccess value correct?
    -  This topic was modified 5 years, 9 months ago by [sinho0689](https://wordpress.org/support/users/sinho0689/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [miniOrange](https://wordpress.org/support/users/cyberlord92/)
 * (@cyberlord92)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/options-request-method-unauthorized-401/#post-13343973)
 * Thank you for reaching out to us.
 * Can you please share with us the request format you are using? Which APIs are
   you trying to protect with API key Authentication method?
 * Also, Can you please send us a support query from the contact form inside the
   plugin so that we can help you to setup the plugin in no time.

Viewing 1 replies (of 1 total)

The topic ‘OPTIONS Request Method Unauthorized 401’ is closed to new replies.

 * ![](https://ps.w.org/wp-rest-api-authentication/assets/icon-128x128.png?rev=2084327)
 * [JWT Authentication for WP REST APIs](https://wordpress.org/plugins/wp-rest-api-authentication/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rest-api-authentication/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rest-api-authentication/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rest-api-authentication/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rest-api-authentication/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rest-api-authentication/reviews/)

## Tags

 * [auth](https://wordpress.org/support/topic-tag/auth/)

 * 1 reply
 * 2 participants
 * Last reply from: [miniOrange](https://wordpress.org/support/users/cyberlord92/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/options-request-method-unauthorized-401/#post-13343973)
 * Status: resolved