Is it possible to receive secure cookies after Apache performs a rewrite from http to https?

When updating our applications to deal with the changes of cookies samesite = none, we encounter this problem:

In our vhost for a previous application, we have this rule that rewrites http requests to https:

RewriteRule (.*) https://oursite.com$1 (NE,L,R=301)

Unfortunately, when this rule is used and requests are rewritten, we lose all cookies from samesite = none, because the new "samesite = none" also requires "secure = true".

As I understand it, when the server receives the initial http request, it does not receive those cookies and then that request is forwarded to the https version, but there are no cookies to resend the request

This is our apache and centos information:

Server version: Apache/2.4.6 (CentOS)
centos-release-7-6.1810.2.el7.centos.x86_64

My question

Is there any way to redirect http to https that allows secure = true cookies to be sent in the https request?

tl; dr things

  • We have updated all the local URLs in this application to point to https, this avoids many problems.
  • The main concern would be links from sources we do not control. Being an application of almost 20 years that is connected to many other systems, there will surely be links somewhere that still point to http and are redirected by this rule.

I receive a PDO error that seems to be related to the media module

After the Drupal 8.8 update, the media module does not work.
In the administration media, links do not work, for example / admin / content / media
Error:
The website encountered an unexpected error. Please try again later.

Drupal Core Database DatabaseExceptionWrapper: SQLSTATE (42S02): Base table or view not found: 1146 The table & # 39; media & # 39; does not exist: SELECT COUNT (*) AS expression FROM (SELECT 1 AS expression FROM {media} base_table GROUP BY base_table.vid, base_table.mid) subquery; Array () in Drupal media MediaListBuilder-> getEntityIds () (line 158 of core / modules / media / src / MediaListBuilder.php).

python: creation of a new data frame to receive columns from the previous one

Thank you for contributing to Stack Overflow in Portuguese!

  • Make sure answer the question. Enter details about your solution and share what you have discovered.

But avoid

  • Request clarification or details about other answers.
  • Make statements based only on your opinion; punctual references or previous experiences.

For more information, see our tips on how to write good answers.

OpenWrt- Call from a script with xhr.get to a lua server and receive a variable in response

The idea is as follows, with a call from the html script make a call to the server that returns a variable to me.

THE call would be such that

XHR.get('<%=REQUEST_URI%>',  { one : '1' }, function(x,info) {
        console.log(info);
    });

and the answer would be according to what I could find

function parse_gateway()
 local one = luci.http.formvalue("one")
 local fileContent = {
    content = "sample1",
    find = "sample2"
 }
 luci.http.prepare_content("application/json")
 luci.http.write_json(fileContent) 
end

But this always produces me a
eof expected near 'end' If I put it in the htm. I have obtained most of the information from here but it is very little concrete and as proof copying and pasting your codes do not work for me.

I update, miraculously it has worked (compiles and seems to do something), the only thing that the answer does not arrive at the correct information (a null arrives per console)

How do I get root access on my Galaxy Galaxy S10? And receive write permission?

I need to get root access to my Samsung Galaxy S10 and also receive write permissions

I receive junk entries in my bot database

I receive junk values ​​in my bot database, with address 3137 laguna street and PIN code 94102.

per minute I get 30 records, how can I fix this? I am already using Google recaptcha

[ Politics ] Open question: Is Rush Limbaugh the only person in history to receive a medal of freedom for the mere fact of lying on the radio for decades?

Will Alex Jones be the next to whom Trump will grant him a freedom medal, or will his friend Sean HENnity receive it later?

sharepoint enterprise – "This form cannot be opened in a web browser. To open this form, use MS Infopath" … why do I receive this message?

I am creating a simple and ready-to-use workflow in SP2010 for a calendar. Content type is ALL, Approval – SharePoint 2010. Then, when I click continue. I receive the message "This form cannot be opened in a web browser. To open this form, use MS InfoPath". I did not use InfoPath. Has anyone else experienced this? I have searched all solutions are people who use InfoPath. Is there anything else that is causing this?

Why does Trump boast that fewer people receive food stamps without mentioning that he cut food stamps?

Trump is always talking to his fans. They don't care at all if he lies, so he lies more and more.

You may remember, when Obama created millions of jobs and the unemployment rate began to fall, Republicans distracted his people by talking about the "labor participation rate." In a healthy economy, more mothers can stay at home and take care of the children. They are not UNEMPLOYED in the sense of wanting a job but not being able to find it. But for Republicans, more people who didn't have to work were considered a bad thing.

Since his campaign began, Trump has behaved as if he never believed that anything he said would be verified. He has told you the same dozen great lies over and over again, in each speech. Obama left the economy in ruins and Trump fixed it. He has created more jobs than any other president. Your average American working person is getting richer and richer under your management of the economy. They always call these lies, but Republicans have convinced their voters that all media and factual verifiers are against them.

Naming conventions for callback setters for something you receive and receive from both sides

I am writing an OpenVPN client that can connect to a TCP / IP stack. Then I can use the OpenVPN client to send packages to the world and receive packages from the world. But the TCP / IP stack also has to subscribe to receive and send packets. Then we have to set 4 callbacks. It is difficult to give a name to these callbacks because from the perspective of the object sends to 2 places but also receives from 2 places.

What would be a good naming convention for these callbacks? One that can be used for any object you receive and send from both sides.