设置子域的Cookie

时间:2019-12-06 13:40:25

标签: node.js express cookies

我尝试使用https为子域设置cookie。我在节点侧设置cookie。它可以在Http且没有域的情况下正常工作,但是当我在domain和https进行尝试时,则无法工作。

这是我为https尝试的代码:-

                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/kev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore- 
    0.12.11/ios/Classes/CloudFirestorePlugin.m:157:24: error: no visible @interface for 
    'FIRQuery' declares the selector 'queryWhereFieldPath:arrayContainsAny:'
                query = [query queryWhereFieldPath:fieldPath arrayContainsAny:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/kev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore- 
   0.12.11/ios/Classes/CloudFirestorePlugin.m:163:24: error: no visible @interface for 
   'FIRQuery' declares the selector 'queryWhereField:in:'
            query = [query queryWhereField:fieldName in:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/kev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore- 
   0.12.11/ios/Classes/CloudFirestorePlugin.m:165:24: error: no visible @interface for 
  'FIRQuery' declares the selector 'queryWhereFieldPath:in:'
                query = [query queryWhereFieldPath:fieldPath in:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/kev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore- 
   0.12.11/ios/Classes/CloudFirestorePlugin.m:764:16: warning: 'timestampsInSnapshotsEnabled' 
    is deprecated [-Wdeprecated-declarations]
              settings.timestampsInSnapshotsEnabled = 
    (bool)call.arguments[@"timestampsInSnapshotsEnabled"];
                   ^
    In module 'FirebaseFirestore' imported from 

  /Users/kev/Documents/flutterprojects/shopapp/ios/Pods/Headers/Public/Firebase/Firebase.h:45:

 /Users/kev/Documents/flutterprojects/shopapp/ios/Pods/FirebaseFirestore/Firestore/Source/Public .   /FIRFirestoreSettings.h:69:20: note: 'timestampsInSnapshotsEnabled' has been explicitly marked 
    deprecated here
           __attribute__((deprecated));
                       ^
       1 warning and 4 errors generated.
       note: Using new build systemnote: Planning buildnote: Constructing build description
   Could not build the application for the simulator.
   Error launching application on iPhone X.

0 个答案:

没有答案
相关问题