Giter Club home page Giter Club logo

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:8050/api/v1/conversations. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403. about fossteams-frontend HOT 5 CLOSED

fossteams avatar fossteams commented on May 31, 2024
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:8050/api/v1/conversations. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

from fossteams-frontend.

Comments (5)

denysvitali avatar denysvitali commented on May 31, 2024

What do you see in the server logs?

Can you get the conversations by visiting the page directly?

from fossteams-frontend.

CE1CECL avatar CE1CECL commented on May 31, 2024

What do you see in the server logs?

Can you get the conversations by visiting the page directly?

I can go to it directly
its the browser that isn't allowing localhost:8050 b/c of CORS, which usually gets fixed with an extension or other
happens in chrome too

from fossteams-frontend.

denysvitali avatar denysvitali commented on May 31, 2024

Oh I see your issue.
You're visiting http://localhost:8080 instead of http://127.0.0.1:8080

CORS on the backend is configured to only allow request from 127.0.0.1:8080, see here:
https://github.com/fossteams/fossteams-backend/blob/master/internal/server/server.go#L333

from fossteams-frontend.

CE1CECL avatar CE1CECL commented on May 31, 2024

Oh I see your issue. You're visiting http://localhost:8080 instead of http://127.0.0.1:8080

CORS on the backend is configured to only allow request from 127.0.0.1:8080, see here: https://github.com/fossteams/fossteams-backend/blob/master/internal/server/server.go#L333

WARNING Compiled with 2 warnings 7:53:47 AM

warning in ./node_modules/vue-property-decorator/lib/index.js

"export 'default' (reexported as 'Component') was not found in 'vue-class-component'

warning in ./node_modules/vue-property-decorator/lib/index.js

"export 'default' (reexported as 'Vue') was not found in 'vue'

App running at:

Note that the development build is not optimized.
To create a production build, run yarn build.

Issues checking in progress...
No issues found.

:8080?? i got :8081 (8080 is in use maybe?)

from fossteams-frontend.

CE1CECL avatar CE1CECL commented on May 31, 2024

Oh I see your issue. You're visiting http://localhost:8080 instead of http://127.0.0.1:8080
CORS on the backend is configured to only allow request from 127.0.0.1:8080, see here: https://github.com/fossteams/fossteams-backend/blob/master/internal/server/server.go#L333

WARNING Compiled with 2 warnings 7:53:47 AM

warning in ./node_modules/vue-property-decorator/lib/index.js

"export 'default' (reexported as 'Component') was not found in 'vue-class-component'

warning in ./node_modules/vue-property-decorator/lib/index.js

"export 'default' (reexported as 'Vue') was not found in 'vue'

App running at:

* Local:   http://localhost:8081/

* Network: http://192.168.1.234:8081/

Note that the development build is not optimized. To create a production build, run yarn build.

Issues checking in progress... No issues found.

:8080?? i got :8081 (8080 is in use maybe?)

in chrome console

Access to XMLHttpRequest at 'http://127.0.0.1:8050/api/v1/conversations' from origin 'http://127.0.0.1:8081' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

from fossteams-frontend.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.