Cbio Portal with Nginx

21 views
Skip to first unread message

Yuliia Orlova

unread,
Mar 31, 2026, 12:24:51 PMMar 31
to cBioPortal for Cancer Genomics Discussion Group
Hi, 
I'm an advisor at SURF Research Cloud, and I'm looking into running cBioPortal on a virtual machine on our platform. I followed all the steps for the Deployment with Docker session, and there were no error messages. However, when I try to access cBioPortal, I see the portal for a second, and then the page with cBioPortal and the following message appears:

Copy-paste the error log below and provide a click-by-click description of how you arrived at the error.

{"req":{"method":"POST","url":"//cbioportalyo.surfresearchclo.src.surf-hosted.nl/api/studies/tags/fetch","data":[],"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":"//cbioportalyo.surfresearchclo.src.surf-hosted.nl/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","connection":"keep-alive","date":"Wed, 25 Mar 2026 16:01:22 GMT","expires":"0","pragma":"no-cache","server":"nginx/1.18.0 (Ubuntu)","transfer-encoding":"chunked","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","connection":"keep-alive","date":"Wed, 25 Mar 2026 16:01:22 GMT","expires":"0","pragma":"no-cache","server":"nginx/1.18.0 (Ubuntu)","transfer-encoding":"chunked","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://cbioportalyo.surfresearchclo.src.surf-hosted.nl/"}

I suspect that the issue could be related to the fact that we configure all web applications with Nginx, so the cbioportal-container is running on the https://cbioportalyo.surfresearchclo.src.surf-hosted.nl/ (in my case), and not on http://localhost:8080, as expected in the documentation. 

Could you please let me know what can go wrong here?
Best regards,
Yuliia

Gaofei Zhao

unread,
Apr 7, 2026, 2:36:06 PMApr 7
to Yuliia Orlova, cBioPortal for Cancer Genomics Discussion Group
Hi Yuliia,

The issue seems related to a CORS error.
Could you try these steps?
  • Bring down docker-compose
  • In your config/application.properties, add "--security.cors.allowed-origins=*"
  • Then restart docker-compose.
Let me know if that works for you.

Best,
Gaofei

--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cbioportal/23ca7ae9-55ac-4115-b397-4a931058d811n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages