Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4030432
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:28:16+00:00 2026-05-20T11:28:16+00:00

I need my chrome extension to read a value of a cookie set by

  • 0

I need my chrome extension to read a value of a cookie set by a rails app, I did just try and use plain javascript to achieve this but kept getting the result of the cookie as null.

As I understand it you have to use the Chrome cookie API to read them? I’m totally clueless when it comes to chrome extensions, I’m struggling with what the structure should be for the extensions i.e. A Background page, popup or a content script??

Ideally I want the popup.html to iterate through the values in the cookie that is sent, so I would strip the cookie for the values which would then be written to the popup.html file.

Any ideas or suggestions where to start?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:28:17+00:00Added an answer on May 20, 2026 at 11:28 am

    The only way you can read your sites cookies is by Content Scripts.

    Since you wanted to do that in a popup.html page, you have two choices:

    1. Tabs API – chrome.tabs.executeScript
    2. Messaging API – chrome.tabs.sendRequest

    Once you are in the content script, you can communicate to that pages Cookies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a chrome extension which have a server-side javascript and I need this
I'm building a chrome extension and I need to read the HTML code of
I am just starting writing chrome extension. I need an advice on what should
I need to be able to read a variable set on a google chrome
I've never really written a real Chrome extension. I did one that was just
I am writing a Chrome extension and I need to pass in the value
I need a way in my Chrome extension to know when the browser is
I am building a chrome extension and I need to be able to execute
I need to do a cross-domain request in a chrome extension. I know I
we are in process of developing google chrome extension, in which we need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.