View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] CORS with ProjeQtor 8.4.6 API - ProjeQtOr
 
 

[SOLVED] CORS with ProjeQtor 8.4.6 API

More
13 Aug 2020 11:23 - 26 Aug 2020 14:26 #1 by antoine1003
Hi,

I try to use the "API" from an other website but I have a CORS error :

Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur projeqtor-test.bibou.fr/orig/api/Resourc...arch/username='admin'. Raison : l’en-tête CORS « Access-Control-Allow-Origin » est manquant.

Is there any clean way to correct this ?

Thanks

PS: It could be nice to add a Content-Type: application/json header in the API... It would be cleaner ;)
Last edit: 26 Aug 2020 14:26 by protion.
The topic has been locked.
More
17 Aug 2020 14:50 #2 by antoine1003
Is there any solution?
The topic has been locked.
More
17 Aug 2020 15:02 #3 by antoine1003
The OPTIONS (preflight) request made before the GET request is blocked because the auth header is not passed (it's the way it work) so this request get a 403 and so the GET request is blocked. I wonder how can it even work ???? I am missing something!
The topic has been locked.
More
20 Aug 2020 14:26 #4 by babynus
Hi,

I don'yt know how to fix the CORS protection.
Maybe some apache configuration car allow such requests for granted source servers.

About content-type of API, ticket #4855 recorded

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
20 Aug 2020 14:31 #5 by antoine1003

babynus wrote: Hi,

I don'yt know how to fix the CORS protection.
Maybe some apache configuration car allow such requests for granted source servers.

About content-type of API, ticket #4855 recorded

Okay cool, thanks
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.042 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.