CORS issue

63 views
Skip to first unread message

Nikolai Barinov

unread,
Feb 26, 2025, 9:29:05 AM2/26/25
to cBioPortal for Cancer Genomics Discussion Group
Hello,
I try install CbioPortal vith docker compose how it defined in the instruction. The application deployed in the AWS EC2 behind the Application Load Balancer. To the balancer I assigned a dns name. And when I try to open the portal I immediately forwarded to the page with CORS error. See more below
{
    "req": {
        "method": "POST",
        "url": "//cbioportal.mydomain.com/api/studies/tags/fetch",
        "data": [
            "lgg_ucsf_2014"
        ],
        "headers": {
            "accept": "application/json",
            "content-type": "application/json"
        }
    },
    "xhr": {},
    "text": "Invalid CORS request",
    "statusText": "",
    "statusCode": 403,
    "status": 403,
    "statusType": 4,
    "info": false,
    "ok": false,
    "redirect": false,
    "clientError": true,
    "serverError": false,
    "error": {
        "status": 403,
        "method": "POST",
        "url": "//cbioportal.mydomain.com/api/studies/tags/fetch"
    },
    "created": false,
    "accepted": false,
    "noContent": false,
    "badRequest": false,
    "unauthorized": false,
    "notAcceptable": false,
    "forbidden": true,
    "notFound": false,
    "unprocessableEntity": false,
    "headers": {
        "cache-control": "no-cache, no-store, max-age=0, must-revalidate",
        "date": "Wed, 26 Feb 2025 11:14:59 GMT",
        "expires": "0",
        "pragma": "no-cache",
        "vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers",
        "x-content-type-options": "nosniff",
        "x-frame-options": "DENY",
        "x-xss-protection": "0",
        "content-type": null
    },
    "header": {
        "cache-control": "no-cache, no-store, max-age=0, must-revalidate",
        "date": "Wed, 26 Feb 2025 11:14:59 GMT",
        "expires": "0",
        "pragma": "no-cache",
        "vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers",
        "x-content-type-options": "nosniff",
        "x-frame-options": "DENY",
        "x-xss-protection": "0",
        "content-type": null
    },
    "type": "",
    "links": {},
    "body": null,
    "url": "https://cbioportal.mydomain.com/"
}

lisman...@gmail.com

unread,
Mar 3, 2025, 12:00:14 PM3/3/25
to cBioPortal for Cancer Genomics Discussion Group
Are you using auth?   What is the url of the page?

Aaron L

unread,
Mar 4, 2025, 8:26:58 AM3/4/25
to Nikolai Barinov, cBioPortal for Cancer Genomics Discussion Group
Glad to hear it's resolved.   

On Tue, Mar 4, 2025 at 3:55 AM Nikolai Barinov <nbar...@gmail.com> wrote:
Hi, I resolved the issue by set environment variables values for Spring, Thank you

пн, 3 мар. 2025 г. в 20:00, lisman...@gmail.com <lisman...@gmail.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cbioportal/GBFPZRiUN7M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cbioportal+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cbioportal/7e7f93d5-4431-4374-bf4f-c6ca3c561fb0n%40googlegroups.com.


--
Best Regards,
Barinov Nikolai
The investor and IT engineer
Reply all
Reply to author
Forward
0 new messages