The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.

Hello. I added custom http response headers to my SP site web config file as follows: 
<httpProtocol>
      <customHeaders>
             <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS" />
      <add name="Access-Control-Allow-Origin" value="*" />
      <add name="Access-Control-Allow-Headers" value="Content-Type,Authorization" />
      </customHeaders>
    </httpProtocol>
When I try to call any web service, i get these headers two times each: 
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Transfer-Encoding: chunked
Content-Type: application/atom+xml;type=entry;charset=utf-8
Expires: Sat, 01 Mar 2014 19:11:37 GMT
Last-Modified: Sun, 16 Mar 2014 19:11:37 GMT
ETag: "3"
X-SharePointHealthScore: 0
SPClientServiceRequestDuration: 20
SPRequestGuid: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
request-id: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
X-FRAME-OPTIONS: SAMEORIGIN
Persistent-Auth: true
Access-Control-Allow-Methods: POST,GET,OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type,Authorization
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Methods: POST,GET,OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type,Authorization
MicrosoftSharePointTeamServices: 15.0.0.4569
Date: Sun, 16 Mar 2014 19:11:37 GMT
and that gives me error from ajax: The 'Access-Control-Allow-Origin'
header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.
The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
 Origin 'null' is therefore not allowed access.
Any idea???

Hi Ann,
Please check whether there are duplicate custom headers in your code.
Similar issue for your reference:
http://social.msdn.microsoft.com/Forums/office/en-US/b79b75f4-b46b-46ae-ae29-17a352b6b90b/custom-http-response-headers-for-sp-2013-shown-2-times?forum=sharepointdevelopment 
Regards,
Rebecca Tu
TechNet Community Support

Similar Messages

  • I have my ipod backed up on multiple computers but only one recognizes all my playlists.  How can I get all my play lists to show up on multiple computers?

    I have my ipod backed up on multiple computers but only one computershows all my playlists.  How can I get all my play lists to show up on multiple computers?

    If you want to connect and use an iPod on more than one computer you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply.
    Using iPod with Multiple computers
    Managing content manually on iPod
    If your iPod is set to update automatically take care when connecting to a different computer if your current one is out of commission. You will get a message that your iPod is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it.

  • Simple certificate expired - multiple webgates but only one down

    We have OAM 10.1.4.2 and multiple webgates on different web servers. The certificate expired but only one webgate had problem. Users were able to login to other applications protected by the webgates. All webgates were using the same certificate. Once we updated the certificate in the access server and restarted the access server, other webgates start having problem? Shouldn't all webgates will have problem connecting to access server as soon as certificates expires.
    Thanks.

    Hi,
    I would expect all the WebGates to see the same problem, assuming they do use the same certs. It is possible that they are only checked when establishing the connections to the Access Servers - so they will only see problems when the connections are re-established.
    Regards,
    Colin

  • Search with multiple values in only one field

    Hello there,
    I have this query to get the results when the user make a search query:
    select * from (
    select
    "ID",
    "ID" ID_DISPLAY,
    "SHIFT_DATE",
    "SHIFT",
    "OFFENSE_ID",
    "DESCRIPTION",
    "ANALYST",
    "STATUS",
    "SUBSTATUS"
    from "#OWNER#"."IDSIEM_OFFENSES")
    where
    OFFENSE_ID IN(:P223_OFFENSES) AND
    instr(upper("DESCRIPTION"),upper(nvl(:P223_DESCRIPTION,"DESCRIPTION"))) > 0
    AND
    instr(upper("SHIFT"),upper(nvl(:P223_SHIFT,"SHIFT"))) > 0
    AND
    instr(upper("SUBSTATUS"),upper(nvl(:P223_SUBSTATUS,"SUBSTATUS"))) > 0
    AND
    instr(upper("ANALYST"),upper(nvl(:P223_ANALYST,"ANALYST"))) > 0
    AND
    instr(upper("SHIFT_DATE"),upper(nvl(:P223_SHIFTDATE,"SHIFT_DATE"))) > 0
    AND
    instr(upper("STATUS"),upper(nvl(:P223_STATUS,"STATUS"))) > 0
    ORDER BY OFFENSE_ID DESC
    The thing that I want to do is to put multiple values on the field P223_OFFENSES when I search. For example an offense is a number, so I would like to put in the search field 1111, 3333, 4444, 5555 and the report shows me those 4 offenses in the report. The search operation works only when I put only 1 offenses, but when I put more than 1 separated by comma, it shows me this error: report error:ORA-01722: invalid number. That's why because is a number and the comma character is not allowed, how can I achieve this? Thank you in advance.
    Regards, Bernardo

    Try this one please
    select *
      from (select "ID",
                   "ID" ID_DISPLAY,
                   "SHIFT_DATE",
                   "SHIFT",
                   "OFFENSE_ID",
                   "DESCRIPTION",
                   "ANALYST",
                   "STATUS",
                   "SUBSTATUS"
              from "#OWNER#"."IDSIEM_OFFENSES")
    where (instr(upper("DESCRIPTION"),
                  upper(nvl(:P223_DESCRIPTION, "DESCRIPTION"))) > 0)
       AND (instr(upper("SHIFT"), upper(nvl(:P223_SHIFT, "SHIFT"))) > 0)
       AND (instr(upper("SUBSTATUS"), upper(nvl(:P223_SUBSTATUS, "SUBSTATUS"))) > 0)
       AND (instr(upper("ANALYST"), upper(nvl(:P223_ANALYST, "ANALYST"))) > 0)
       AND (instr(upper("SHIFT_DATE"),
                  upper(nvl(:P223_SHIFTDATE, "SHIFT_DATE"))) > 0)
       AND (instr(upper("STATUS"), upper(nvl(:P223_STATUS, "STATUS"))) > 0)
       AND regexp_like(offense_id,'^('||
                       regexp_replace(regexp_replace(:P233_OFFENSES,'[[:space:]]'),
                                      '|')||')$','i')
    What I am trying to achieve is this
    *** I expect your user to put in the values separated by commas like 27823, 27815, 27834 ****
    1. from the input the user gives back via :P233_OFFENSES, remove SPACES.
    2. Replace all "," with "|"
    3. do a regexp_like search by boxing in the input values with a "^" and "$" so that it does not select values like 278157  which contains the value you searched for viz. 27815
    You can better understand this if you try this query out
    with q1 as
    ( select 1 as id, 27823 as offense_id from dual
      union
      select 2 as id,  27815 as offense_id from dual
      union
      select 3 as id  ,27834 as offense_id from dual
      union
      select 11 as id, 227823 as offense_id from dual
      union
      select 12 as id,  278157 as offense_id from dual
      union
      select 13 as id , 278347 as offense_id from dual
      union
      select 21 as id, 278233 as offense_id from dual
      union
      select 22 as id,  278156 as offense_id from dual
      union
      select 23 as id  ,627834 as offense_id from dual ),
      q2 as (
    select regexp_replace(regexp_replace('27823, 27815, 27834','[[:space:]]'), ',','|') as P233_OFFENSES from dual )
    select * from q1 q, q2 g
       where regexp_like(q.offense_id , '^('||P233_OFFENSES||')$','i') ;
    This should return only the first 3 rows

  • .vcf contains multiple contacts, but only first contact appears on nano?

    Hi- love my nano, but am having trouble getting contact info into it.
    I use Palm Desktop (not Outlook) for Windows (that won't get me shot here, I hope!) and exported multiple (about 30) of my Palm contacts in one .vcf file (version 2.1), but when I copy said .vcf file into my nano\contacts folder (treating it as a hard disk) and pull up Contacts on the nano, the device only displays the first contact in the file, not all contacts.
    While I didn't find any threads here about this specific issue, I did see some old threads elsewhere about importing multiple-vs-single-contact .vcf files, but they seemed to pertain to the 3G/4G iPod, not the nano.
    Is it possible that the nano can just handle single-contact .vcf files?
    At the risk of repeating myself, the issue is not the exporting -- I can open the .vcf file in a text editor and see that all contacts are contained therein -- it's in getting the nano to display all of the contacts listed in the file, not just the first one.
    I apologize in advance if I've breached any posting etiquette. I'm a quick learner, so a slap to the wrist should be sufficient.
    TIA- AndymanD
      Windows XP  

    Information on adding contacts manually available here in the iPod 101:
    http://www.apple.com/support/ipod101/maximize/2/
    Regards,
    Colin R.

  • Oracle Workflow Notification to multiple users but only one response required

    Hi,
    I'd like to ask help on how I would go about this. I have a requirement using Oracle Workflow. Initially the workflow sends a notification with the option to Accept or Reject to a group of people, then if one accepts I should end the process. But if all rejects, then send a notification to the Manager.
    I used a Loop Timer to loop through the members of the group but I noticed that one needs to reply before the next one gets notified and so on.
    I thought of using adhoc role then adding all members to this role. But not sure how to catch if one accepts or all rejects.
    Appreciate any suggestions.
    Thanks,
    Allen

    Hi
    We have a similar situation and every level has multiple user to release the PO. I have tried with all possibilities using standard functionality but no good.
    Would you mind to share the design and the process will be great help.
    Thnaks
    Partha

  • Multiple ipods but only one computer

    Hi all,
    I have just bought 2 x ipod touch 1 for each of my children, is it possible to have 2 totally separate accounts with itunes so when they synch the ipods they don't interfere with each others apps/music.
    any help will be greatly appreciated.
    by the way I am an old stick in the mud so i may need lots of help.
    many thanks in advance
    Keith

    The most easiest way is to create 2 accounts for your kids with the window computer,
    http://support.microsoft.com/kb/279783

  • Talking amongst multiple computers with only one .mac acct

    We have multiple computers but only one .mac account. We would like to isight/ichat with our home-based computers from our laptops (ie: talk with the kids at home while we're on the road...) but can't figure out how to make it work. Do we need to set up SEPARATE .mac accounts ("Family Plan") in order to isight/ichat amongst our computers or can we arrange it all, using only one account?

    Magpie is right.
    You can get FREE AIM Name(s) here.
    You can also get additional free dot mac names if you like. The names will continue to work as iChat names after the free trial (and other dot mac features) expire.

  • Searching Web Apps with Data Source fields containing multiple values

    I have a Web App with a field allowing multiple values to be entered similar to the checkbox list. I need to restrict allowed values to a large, finite list of values currently stored in another Web App as the data source. I can't apply the Data Source field type as that only allows single value selection. I also need to be able to use the Web App Search form to search for items containing 1 OR more values in this field (the search functionality of a checklist field type). Here's what I've tried for field types:
    Text (string) or Text (multiline) field type - By saving a list of comma separated values (the same way that checkbox list outputs) to a text input or textarea, the search logic only searches for exact string (including commas) and doesn't parse the individual values.
    List (checkbox list) field type - This allows me to search multiple values using OR logic, but the web app will only store values that have been entered as options in the actual web app field setup. I tried using a checkbox list with minimal or empty options hoping that whatever values I sent over in a comma separated string value would still get stored, but because the values came from my Web App data source and not the list of options stored with the field, they were not saved.
    Has anyone found a way to do this?
    My other question is about how I might use a similar multi-value field as described above but return search results containing items with ALL selected values for that field (AND logic).
    Can anyone enlighten me to the inner workings of BC web app search logic?

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • How to allow user to enter multiple values?

    Hi, can someone tell me how I can allow user to select multiple values from a selection screen. To be more clear, I have to display 4 values on the selection screen and want to allow user to select 2 or 3 values from it. It will be very helpful if someone could tell me how to do it.
    Thanks in advance,
    pushpa

    hi mahesh,
    pls c the code below. this is what i have written in my program. when i run this program it is showing only one value and that too only the first one '1234'. i want that it display all the values that i gave in the initialization part.
    please help.
    thanks,
    pushpa
    SELECTION-SCREEN BEGIN OF BLOCK enter_data WITH FRAME TITLE text-001.
    SELECT-OPTIONS skunnr FOR kna1-kunnr.
    SELECTION-SCREEN END OF BLOCK enter_data.
    INITIALIZATION.
    skunnr-low = '1234'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '9824'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '8756'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '6534'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.

  • Error: Set type Z contains multiple-value attributes

    Hi forum,
    I have a problem when i try to assign a set type with the same value but diferent name on another set type to the same product category.
    This is the detail of the error but i dont know where i have to set this indicator:
    If you set this indicator for a particular hierarchy, all categories and set types in this hierarchy are created in the PME.
    This gives you the following extended maintenance options at category level:
    You can assign set types with multiple-value attributes
    You can restrict value ranges and maintain default values for attributes of customer set types.
    Any sugerence about this?
    Regards and thanks in advance,
    Mon

    Hi Nelson,
    I create two set types, the description is not the problem. I have discover that when i try to assign these attributes in the same set type or in other appears this error.
    The set types have the same values. For example:
    zcountry1. Values: sp - spain. fr - france.
    zcountry2. Values: sp - spain. fr - france.
    When i try to configurate the comm_hierarchy in my category appears this error:
    Set type zcountry2 contains multiple-value attributes.
    Diagnosis
    The set type ZGAME5 contains multiple-value attributes. It cannot be assigned to the category as extended maintenance has not been activated.
    Procedure
    Multiple-value attributes are stored in the PME. If you want to use the set type ZGAME5, you must set the Extended Maintenance Options indicator for the hierarchy.
    Extended Maintenance Is Possible for the Hierarchy
    Definition
    If you set this indicator for a particular hierarchy, all categories and set types in this hierarchy are created in the PME.
    This gives you the following extended maintenance options at category level:
    You can assign set types with multiple-value attributes
    You can restrict value ranges and maintain default values for attributes of customer set types.
    Where is this indicator¿? in R3?
    So, these are the steps...can anybody help to me?
    Regards and thanks in advance.

  • HT6162 My phone will not let me download the most recent update for iOS 7.1. It says I need a wifi connection and will not allow me to push the 'Download & Install' button, even when I am at home and my wifi is on. How do I fix this?

    My phone will not let me download the most recent update for iOS 7.1. It says I need a wifi connection and will not allow me to push the 'Download &amp; Install' button, even when I am at home and my wifi is on. How do I fix this?

    Unfortunately yes, though technology would never move on if it kept to older standards and did not strive to do more.
    The app store always gives you the option to use a previous version of the app IF it is available for your device.
    Sorry but you are stuck without new hardware.
    PJRS

  • I am trying to update my software through the app store but for some reason an error occurs and will not allow me to do so

    I am trying to update my software through the app store but for some reason an error occurs and will not allow me to do so. And when i go online to log into my apple id account it states that there is an error. Can someone help me solve this issue, its annoying me?

    Apple’s having trouble with the iTunes Store servers right now. Wait for them to resolve the issue.
    (123935)

  • Student account for Adobe CC - downloaded and worked but only for TRIAL - now asks for license - how do I access the programs? I was given a redemption code (apparently redeemed already). How do I get the licensing code?

    Student account for Adobe CC - downloaded and worked but only for TRIAL - now asks for license - how do I access the programs? I was given a redemption code (apparently redeemed already). How do I get the licensing code?

    Ask whom/wherever you got the redemption code from for one that has not already been used.

  • Print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9

    I'm trying to print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9. HELP!!Version 7.0 (826.4)
    I'm using Preview Version 7

    Hello @kgingeri1, 
    Welcome to the HP forums.
    If you have sent a test print via ePrint, and experience this issue, i would call the Cloud Services department.
    If ePrint works fine, it is definitely a Google Cloud Print issue.
    Also, when you print from your android device, are you using Google Cloud print or the HP ePrint app?
    Please call our Cloud Services at 855-785-2777.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Hours:
    Mon-Fri. 8am - 11pm, Sat. 9am-8pm - EST
    Mon-Fri. 7am - 10pm, Sat. 8am-7pm - CST
    Mon-Fri. 6am - 9pm, Sat. 7am-6pm - MST
    Mon-Fri. 5am - 8pm, Sat. 6am-5pm - PST
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

Maybe you are looking for