![]() ![]() ![]() Discourse::Cors.return [200, Discourse::Cors.apply_headers(cors_origins, env,.So remove these headers from your frontend code. It doesnt make sense for the client to give itself permission. The server is 'allowing' the client to send certain headers. cors_origins += rs_origins.split('|') if rs_origins.present? Anytime you see a Access-Control-Allow- header, those should be sent by the server, NOT the client. xmlhttprequest - javascript set header Access-Control-Allow-Origin - Stack Overflow. ![]() I think this is the part of code that handles the cors settings, just in case it is useful. Im developing an POC product that connect diferents services, I use Box. Is there a way to confirm that the env vars are set correctly? (or that the app restart configured the cors without resending requests, just trying to think of ways to debug). No Access-Control-Allow-Origin header is present on the requested resource. Una respuesta que le dice al navegador que permita la peticin de cdigo del origen para acceder a los recursos que incluyan lo siguiente: Access-Control-Allow-Origin: Limitando los posibles valores Access-Control-Allow-Origin de un conjunto de orgenes permitidos requiere cdigo. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |